slitaz-boot-scripts rev 34

Fix again and again.. home=DEVID
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 23 20:30:54 2008 +0100 (2008-02-23)
parents 7c50c87a68f4
children 39c3cc19d5b9
files etc/init.d/bootopts.sh
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Sat Feb 23 19:40:09 2008 +0100
     1.2 +++ b/etc/init.d/bootopts.sh	Sat Feb 23 20:30:54 2008 +0100
     1.3 @@ -16,13 +16,14 @@
     1.4  		# Can be label, uuid or devname. DEVID give us /dev/name and
     1.5  		# DEVICE give us disk name without /dev/.
     1.6  		DEVID=`/sbin/blkid | grep $DEVICE | cut -d: -f1`
     1.7 +		DEVID=${DEVID##*/}
     1.8  	fi
     1.9 -	if [ -n "$DEVID" ] && grep -q "$DEVICE" /proc/partitions ; then
    1.10 -		echo "Mounting /home on /dev/$DEVICE... "
    1.11 +	if [ -n "$DEVID" ] && grep -q "$DEVID" /proc/partitions ; then
    1.12 +		echo "Mounting /home on /dev/$DEVID... "
    1.13  		mv /home/hacker /tmp/hacker-home
    1.14 -		mount -o uid=500,gid=500 /dev/$DEVICE /home
    1.15 +		mount -o uid=500,gid=500 /dev/$DEVID /home
    1.16  	else
    1.17 -		echo "Unable to find $DEVICE... "
    1.18 +		echo "Unable to find $DEVID... "
    1.19  	fi
    1.20  	# Move all hacker dir if needed.
    1.21  	if [ ! -d "/home/hacker" ] ; then