OSDN Git Service

* fix cmdline issues
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 21 Aug 2009 10:07:36 +0000 (18:07 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 21 Aug 2009 10:07:36 +0000 (18:07 +0800)
* do not show Run Android-x86 after installation for vbox

install/scripts/1-install
usb/menu.lst

index b4f05f7..79d0541 100644 (file)
@@ -92,7 +92,7 @@ create_menulst()
        menulst=/hd/grub/menu.lst
        [ -n "$VESA" ] && vga=" vga=788"
        echo -e "default=0\ntimeout=6\nroot (hd0,$1)\nsplashimage=/grub/android-x86.xpm.gz\n" > $menulst
-       cmdline=`cat /proc/cmdline | sed "s|\(initrd.*img *\)||; s|\(INSTALL=$INSTALL *\)||; s|\(SRC=$SRC *\)||; s|\(DEBUG=$DEBUG *\)||; s|\(BOOT_IMAGE.*\)||"`
+       cmdline=`cat /proc/cmdline | sed "s|\(initrd.*img *\)||; s|quiet *||; s|\(vga=[0-9].. *\)||; s|\(INSTALL=$INSTALL *\)||; s|\(SRC=$SRC *\)||; s|\(DEBUG=$DEBUG *\)||; s|\(BOOT_IMAGE.*\)||"`
 
        create_entry "Android-x86 $VER" quiet $cmdline
        create_entry "Android-x86 $VER (Debug mode)" $cmdline DEBUG=1
@@ -181,10 +181,10 @@ do_install()
                fi
        done
 
-       echo -e '"Run Android-x86" ""\n"Reboot" ""' > $menufile
+       [ -n "$VESA" ] || runit="Run Android-x86"
        dialog --clear --title ' Congratulations! ' \
                --menu "\n Android-x86 is installed successfully.\n " 11 51 13 \
-               "Run Android-x86" "" "Reboot" "" 2> $tempfile
+               "$runit" "" "Reboot" "" 2> $tempfile
        case "`cat $tempfile`" in
                Run*)
                        cd /android
@@ -198,7 +198,7 @@ do_install()
                        fi
                        [ -d /hd/$asrc/data ] && mount --bind /hd/$asrc/data data
                        ;;
-               Reboot)
+               *)
                        rebooting
                        ;;
        esac
index 7f209fb..e8e50d9 100644 (file)
@@ -16,5 +16,5 @@ title Live USB - Debug Mode
        initrd /android-system/initrd.img
 
 title Installation - Install Android VER to harddisk
-       kernel /android-system/kernel CMDLINE quiet SRC=/android-system INSTALL=1 DEBUG=
+       kernel /android-system/kernel CMDLINE SRC=/android-system INSTALL=1 DEBUG=
        initrd /android-system/initrd.img