[oe-commits] org.oe.dev altboot: Update 0.0.0 version
coredump commit
openembedded-commits at lists.openembedded.org
Sat Oct 28 16:43:32 UTC 2006
altboot: Update 0.0.0 version
Author: coredump at openembedded.org
Branch: org.openembedded.dev
Revision: 8605cce0c3f57ef0a8d2c41260b71d2e06273548
ViewMTN: http://monotone.openembedded.org/revision.psp?id=8605cce0c3f57ef0a8d2c41260b71d2e06273548
Files:
1
packages/altboot/files/altboot.func
packages/altboot/files/altbootctl
packages/altboot/files/altbootctl.conf
packages/altboot/files/init.altboot
Diffs:
#
# mt diff -red6e3ddfb26e70b92e8db814eca4e23dd94e290e -r8605cce0c3f57ef0a8d2c41260b71d2e06273548
#
#
#
# patch "packages/altboot/files/altboot.func"
# from [5a124e4881c0d4938960cf04034e26f22edb8d99]
# to [dd7a58cf92a4de2e7ff86c5a230519f2d3d991e3]
#
# patch "packages/altboot/files/altbootctl"
# from [598131c375f63ab829de63fb559a105e6c38c72f]
# to [9815a31386a00917c2beeb1db2d9ee67d730dcff]
#
# patch "packages/altboot/files/altbootctl.conf"
# from [a609c0d2d8e4429885f585b70e10bb5413f1d51e]
# to [a6d94a045f6fad6970c22746b7aaf5e124856d34]
#
# patch "packages/altboot/files/init.altboot"
# from [f023a757c6da95d104e6d89ac36c528b31152f05]
# to [49a643fa3acab1a8c6f5e04b4a25d7e9783177ef]
#
============================================================
--- packages/altboot/files/altboot.func 5a124e4881c0d4938960cf04034e26f22edb8d99
+++ packages/altboot/files/altboot.func dd7a58cf92a4de2e7ff86c5a230519f2d3d991e3
@@ -606,7 +606,7 @@ dump_pref() {
dump_pref() {
data_name="$1"
- echo "`eval echo -e ${data_name} | sed "s/\#\#\#/\#\#\#\\n/g"|sed s/^\ // `"
+ echo "`eval echo -e \\$${data_name} | sed "s/\#\#\#/\#\#\#\\n/g"|sed s/^\ // `"
#echo "-- `eval echo ${data_name}` --"
#debug_echo "[$menu_fileflags]"
============================================================
--- packages/altboot/files/altbootctl 598131c375f63ab829de63fb559a105e6c38c72f
+++ packages/altboot/files/altbootctl 9815a31386a00917c2beeb1db2d9ee67d730dcff
@@ -55,8 +55,8 @@ ask_pref() {
#echo "[$1] -> $SETTING_OLD_VALUE"
#echo -e "$SETTING_TEXT"
+
-
if test "$SETTING_VALUES" = "<STRING>"
then
while true
@@ -92,6 +92,8 @@ ask_pref() {
# If it's not a string, it's a fixed list of possible settings
echo -e "\nSelect one of the following:\n"
cnt=1
+
+ echo " $SETTING_VALUES"
for val in $SETTING_VALUES
do
if test "$val" != "$SETTING_OLD_VALUE"
============================================================
--- packages/altboot/files/altbootctl.conf a609c0d2d8e4429885f585b70e10bb5413f1d51e
+++ packages/altboot/files/altbootctl.conf a6d94a045f6fad6970c22746b7aaf5e124856d34
@@ -10,7 +10,7 @@ TARGETS="REMEMBER_LAST_SELECTION ENABLE_
TARGETS="REMEMBER_LAST_SELECTION ENABLE_ALTBOOT FSCK_IMAGES TIMEOUT INIT_RUNLEVEL NO_GUI_RL \
USB_HOST_AVAILABLE USB_NETWORKING_AVAILABLE ASK_PW_ON_BOOT SD_DEVICE SD_KERNEL_MODULE \
IMAGE_PATH IMAGE_TYPE ENABLE_IMAGECONF USB_STORAGE_MODULES USB_STORAGE_PARTITION \
- USB_STORAGE_WAIT SD_MOUNTPOINT"
+ USB_STORAGE_WAIT SD_MOUNTPOINT ENABLE_DEBUGGING ENABLE_DEBUG_SHELL"
REMEMBER_LAST_SELECTION_VALUES="yes no"
@@ -33,10 +33,14 @@ NO_GUI_RL_MENUPOS="Core"
NO_GUI_RL_TEXT="GUI-less runlevel"
NO_GUI_RL_MENUPOS="Core"
-ENABLE_DEBUG_VALUES="yes no"
-ENABLE_DEBUG_TEXT="Enable debug output"
-ENABLE_DEBUG_MENUPOS="Core"
+ENABLE_DEBUGGING_VALUES="auto yes no"
+ENABLE_DEBUGGING_TEXT="Enable debugging output"
+ENABLE_DEBUGGING_MENUPOS="Core"
+ENABLE_DEBUG_SHELL_VALUES="yes no"
+ENABLE_DEBUG_SHELL_TEXT="Enable a shell prompt after kernel init"
+ENABLE_DEBUG_SHELL_MENUPOS="Core"
+
FSCK_IMAGES_VALUES="yes no"
FSCK_IMAGES_TEXT="Automatically fsck loop-images"
FSCK_IMAGES_MENUPOS="LoopImages"
============================================================
--- packages/altboot/files/init.altboot f023a757c6da95d104e6d89ac36c528b31152f05
+++ packages/altboot/files/init.altboot 49a643fa3acab1a8c6f5e04b4a25d7e9783177ef
@@ -141,6 +141,8 @@ show_menu() {
done
cd "$OLD_PWD"
+ else
+ debug_echo "show_menu(): \$M_TITLE is empty"
fi
M_TITLE=""
fi
@@ -160,10 +162,13 @@ show_sub_menu() {
d_entries="`dump_pref "menu_filelist" | grep "$dirname/"`"
+ #dump_pref "menu_filelist"
+ #dump_pref "menu_fileflags"
#echo "[$d_entries]"
echo -e "\naltboot v$VERSION: $dirname menu\n"
+ #debug_echo "show_sub_menu(): ping"
for d_entry in $d_entries
do
@@ -376,16 +381,27 @@ wait_for_input() {
}
# * * * * * * This is the main function * * * * * *
-# Note: this is positively ugly. If someone knows a better way to detect wheter
-# we are already booted into a runlevel _without_ reading /var and / or using `runlevel`
-# PLEASE let me know.
if ( echo "$VERSION" | egrep -iq "(snapshot|-rc)" )
then
+ if test "$ENABLE_DEBUGGING" = "auto" -o -z "$ENABLE_DEBUGGING"
+ then
+ ENABLE_DEBUG="yes"
+ fi
+fi
+
+test "$ENABLE_DEBUG_SHELL" = "yes" && debug_shell 4 >/dev/null 2>&1 &
+
+if test "$ENABLE_DEBUGGING" = "yes"
+then
ENABLE_DEBUG="yes"
debug_shell 4 >/dev/null 2>&1 &
fi
+# Note: this is positively ugly. If someone knows a better way to detect whether
+# we are already booted into a runlevel _without_ reading /var and / or using `runlevel`
+# PLEASE let me know.
+
if test -f /proc/cmdline -a "`ps ax|wc -l|tr -d " "`" -gt 30 -a "$1" != "-force" -a "$1" != "+force"
then
echo "altboot: Using real init [$REAL_INIT] [$*] [`ps ax|wc -l|tr -d " "`] *" >"$OUT_TTY"
More information about the Openembedded-commits
mailing list