[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: blank screen after executing console command...



Hi,

On Sun, May 22, 2005 at 11:26:24AM -0600, Javier-Elias Vasquez-Vivas wrote:
> Cool it worked out...

nice, what was wrong?

> Now, how to make console start after boot?  Must it be done through
> /etc/init.d scripts?

You need to call it from /libexec/runsystem. I attached a
file hurd-console.diff, which shows what I've changed. Can't
tell who initially wrote this piece of code for sure,
but IIRC it was contributed by Michael Banck.

Furthermore you want to copy the hurd-console file to
/etc/default (and adjust it accordingly)

Cheers,
  Stefan
 
-- 
Stefan Siegl <ssiegl@gmx.de>
"sick nature" != "signature"
# Options to start the Hurd console.

# The display driver, mandatory.  Either `vga' or `ncursesw'.
DISPLAY='-d vga --font /etc/9x15.bdf'

# The keyboard driver, mandatory.  Either `pc_kbd' or `xkb' from the
# console-driver-xkb package.
#KBD='-d pc_kbd'
KBD='-d xkb --xkbdir=/etc/X11/xkb --keymapfile=keymap/hurd --keymap=Hurd'

# The keyboard repeater.  Required for X11.
KBD_REPEAT='--repeat=kbd'

# The mouse driver.  Optional.
MOUSE='-d pc_mouse --protocol=ps/2'

# The mouse repeater.  Required for X11.
MOUSE_REPEAT='--repeat=mouse'

# The pc speaker.  Optional.
SPEAKER='-d generic_speaker'


--- runsystem.gnu	2005-05-17 19:46:05.000000000 +0200
+++ runsystem.mine	2005-05-22 11:05:54.000000000 +0200
@@ -127,10 +127,25 @@
     trap "kill -$sig \${runttys_pid}" $sig
   done
 
+  # Touch the first tty so that the Hurd console is certain to pick it
+  # and not some random other tty.
+  touch /dev/tty1
+
   # This program reads /etc/ttys and starts the programs it says to.
   ${RUNTTYS} &
   runttys_pid=$!
 
+  # Startup the Hurd console in a tight infinite loop..
+  # while (true); do
+  for A in {1..5}; do
+    if [ -e /etc/default/hurd-console ]; then
+      unset DISPLAY KBD KBD_REPEAT MOUSE MOUSE_REPEAT SPEAKER
+      . /etc/default/hurd-console
+    fi
+    console ${DISPLAY} ${KBD} ${KBD_REPEAT} \
+            ${SPEAKER} ${MOUSE} ${MOUSE_REPEAT} -c /dev/vcs
+  done
+
   # Wait for runttys to die, meanwhile handling trapped signals.
   wait
 

Reply to: