# HG changeset patch # User Christophe Lincoln # Date 1240758199 -7200 # Node ID cdbc958f594eb5830cffe006de65ef8032fd9255 # Parent ae298db600095d659c99fd8e21a4022bbefcb745 Use 1 case for home= diff -r ae298db60009 -r cdbc958f594e etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Sun Apr 26 16:55:32 2009 +0200 +++ b/etc/init.d/bootopts.sh Sun Apr 26 17:03:19 2009 +0200 @@ -28,7 +28,7 @@ fi } -# Mount /home and check for user hacker home dir. +# Mount /home and check for user home dir. mount_home() { echo "Home has been specified to $DEVICE..." @@ -115,13 +115,11 @@ autologin) # Autologin option to skip first graphic login prompt. echo "auto_login yes" >> /etc/slim.conf ;; - home=usb) + home=*) + # Check for a specified home directory (home=*). Note: # home=usb is a shoter and easy way to have home=/dev/sda1. - DEVICE=sda1 - mount_home ;; - home=*) - # Check for a specified home directory (home=*). DEVICE=${opt#home=} + [ "$DEVICE" = "usb" ] && DEVICE=sda1 mount_home ;; lang=*) # Check for a specified locale (lang=*).