altboot: Fixed a typo preventing any NFS boots
authorMatthias Hentges <oe@hentges.net>
Thu, 19 Jan 2006 13:05:05 +0000 (13:05 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Thu, 19 Jan 2006 13:05:05 +0000 (13:05 +0000)
packages/altboot/files/altboot-menu/Advanced/40-bootNFS
packages/altboot/files/init.altboot

index 88e546a..cefc46c 100644 (file)
@@ -42,10 +42,10 @@ run_module() {
        nfs_mounts="`cat /etc/fstab | grep -v ^# | grep nfs | awk '{print $1}'`"
        nfs_mountpoints="`cat /etc/fstab | grep -v ^# | grep nfs | awk '{print $2}'`"   
        
-       if test -z "$nfs_hosts"
+       if test -z "$nfs_host"
        then
-               echo -e "${C_RED}No configured NFS drives found in /etc/fstab$C_RESET"
-               exit 1
+               die "${C_RED}No configured NFS drives found in /etc/fstab$C_RESET"
+               
        fi
        
        # WLAN with DHCP needs some time to get a lease, set up the routing, etc.       
index 830be08..b1d0704 100644 (file)
@@ -5,7 +5,6 @@
 # New menu entries can be created be putting files into /etc/altboot-menu.
 #
 
-
 test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
 
 CURRENT_ENV="`set`"