[Voyage-linux] patch to voyage-install.sh

Sean Lazar (spam-protected)
Sat Mar 28 17:04:06 HKT 2009


Hello,

I found a little bug in voyage-install.sh. If you select "Console 
Interface" under "Configure Target Console" it will not use it the next 
time you run voyage.update. Also, the VOYAGE_SYSTEM_CONSOLE variable does 
not pass from the etc/voyage-profiles. This happens most when using the 
Generic PC profile or the Notebook profile. Here is a patch that fixes 
these bugs.

Sean

--- voyage-install.sh.orig      2009-03-27 23:30:37.000000000 -0700
+++ voyage-install.sh   2009-03-28 01:34:31.000000000 -0700
@@ -134,8 +134,13 @@
  #      Sets environment vars VOYAGE_SYSTEM_CONSOLE and 
VOYAGE_SYSTEM_SERIAL
  #
  select_target_console() {
+       if [ "$VOYAGE_SYSTEM_CONSOLE" == "standard" ]; then
+               VOYAGE_SYSTEM_CONSOLE_DEFAULT=2
+    else
+               VOYAGE_SYSTEM_CONSOLE_DEFAULT=1
+       fi
         local a opts="Serial Terminal%Console Interface"
-       ask_setting "Select terminal type:" "$opts" 1
+       ask_setting "Select terminal type:" "$opts" $VOYAGE_SYSTEM_CONSOLE_DEFAULT
         case $v in
                 1) VOYAGE_SYSTEM_CONSOLE="serial";;
                 2) VOYAGE_SYSTEM_CONSOLE="standard";;






More information about the Voyage-linux mailing list