bootable/newinstaller
Révision | 48ede358f27cdd0af529460e2122b086269b3b92 (tree) |
---|---|
l'heure | 2011-05-23 19:19:23 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: ensure keyboard driver is loaded in debug or installation mode
@@ -125,6 +125,9 @@ if [ -n "$DEBUG" -o -n "$BUSYBOX" ]; then | ||
125 | 125 | ln -s android/sbin / |
126 | 126 | fi |
127 | 127 | |
128 | +# ensure keyboard driver is loaded | |
129 | +[ -n "$INSTALL" -o -n "$DEBUG" ] && modprobe atkbd | |
130 | + | |
128 | 131 | if [ -n "$DEBUG" ]; then |
129 | 132 | echo -e "\nType 'exit' to continue booting...\n" |
130 | 133 | debug_shell debug-found |
@@ -171,7 +171,7 @@ create_sdcard_img() | ||
171 | 171 | newfs_msdos -L sdcard /dev/loop7 > /dev/tty7 2>&1 |
172 | 172 | fi |
173 | 173 | if [ $? -eq 0 ]; then |
174 | - sed -i "s|\(SDCARD=\S\+\?\s*\)||; s|\(SRC=\S\+\?\s*\)|\1 SDCARD=/$sdcard|" $menulst | |
174 | + [ -n "menulst" ] && sed -i "s|\(SDCARD=\S\+\?\s*\)||; s|\(SRC=\S\+\?\s*\)|\1 SDCARD=/$sdcard|" $menulst | |
175 | 175 | msg="The fake SD card is created successfully" |
176 | 176 | else |
177 | 177 | msg="Failed to create a fake SD card" |