From 0c8db90631489786c8796afcca13e3019bc30dae Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 25 May 2009 14:40:44 +0000 Subject: Minor improvements for PreBoot ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2881 95ad53e4-c205-0410-b2fa-d234c58c8868 --- boot-env/preboot/uclib-rootfs/init | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'boot-env/preboot/uclib-rootfs/init') diff --git a/boot-env/preboot/uclib-rootfs/init b/boot-env/preboot/uclib-rootfs/init index 7b54516b..a194e5e7 100755 --- a/boot-env/preboot/uclib-rootfs/init +++ b/boot-env/preboot/uclib-rootfs/init @@ -87,7 +87,7 @@ for mod in ${ramfs_nicmods} \ done # read kernel commandline -read KCMDLINE < /proc/cmdline +read KCMDLINE /bin/watchdog + cat</bin/watchdog #!/bin/ash echo \$$ > /tmp/watchdogpid [ ! -f /proc/version ] && mount -n -t proc proc /proc -sleep 120 2> /dev/null -echo "o" > /proc/sysrq-trigger +sleep 120 2>/dev/null +echo "o" >/proc/sysrq-trigger EOF chmod u+x /bin/watchdog watchdog & fi -if [ -n "${essid}" ] ; then +if [ -n "${SSID}" ] ; then # WLAN setup will most probably change the network interface name stored in # nwif (to wlan0 or something like that) : else - # check here for the active ethernet link + # check here for the active Ethernet link ip link show dev eth1 >/dev/null 2>&1 && \ dialog --msgbox "More than one network interface found. This could cause \ some trouble as their activation and ordering depends on the module load \ @@ -150,7 +153,7 @@ echo "macaddr=$macaddr" >>/etc/initramfs-setup # at this point a little selection script could be downloaded, which lets the # user choose what kind of SLX client he wants to get dialog --infobox "Fetching preboot interactive part and configuration from \ -the net ..." 4 65 +the net ($boot_uri) ..." 4 65 wget -q -c -O /tmp/preboot.env $boot_uri/bootloader/${preboot_id}.env mkdir /preboot tar -xzf /tmp/preboot.env -C /preboot @@ -169,5 +172,5 @@ exec ./preboot.sh dialog --msgbox "The execution of the main preboot component failed. Please \ check network access of your box. Is $boot_uri reachable!?" 6 65 # ping -c 1 $boot_uri -sleep 20 && echo "o" > /proc/sysrq-trigger +sleep 20 && echo "o" >/proc/sysrq-trigger -- cgit v1.2.3-55-g7522