slitaz-boot-scripts rev 164

Use 1 case for home=
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 26 17:03:19 2009 +0200 (2009-04-26)
parents ae298db60009
children d7d2f465d02a
files etc/init.d/bootopts.sh
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Sun Apr 26 16:55:32 2009 +0200
     1.2 +++ b/etc/init.d/bootopts.sh	Sun Apr 26 17:03:19 2009 +0200
     1.3 @@ -28,7 +28,7 @@
     1.4  	fi
     1.5  }
     1.6  
     1.7 -# Mount /home and check for user hacker home dir.
     1.8 +# Mount /home and check for user home dir.
     1.9  mount_home()
    1.10  {
    1.11  	echo "Home has been specified to $DEVICE..."
    1.12 @@ -115,13 +115,11 @@
    1.13  		autologin)
    1.14  			# Autologin option to skip first graphic login prompt.
    1.15  			echo "auto_login        yes" >> /etc/slim.conf ;;
    1.16 -		home=usb)
    1.17 +		home=*)
    1.18 +			# Check for a specified home directory (home=*). Note:
    1.19  			# home=usb is a shoter and easy way to have home=/dev/sda1.
    1.20 -			DEVICE=sda1
    1.21 -			mount_home ;;
    1.22 -		home=*)
    1.23 -			# Check for a specified home directory (home=*).
    1.24  			DEVICE=${opt#home=}
    1.25 +			[ "$DEVICE" = "usb" ] && DEVICE=sda1
    1.26  			mount_home ;;
    1.27  		lang=*)
    1.28  			# Check for a specified locale (lang=*).