slitaz-boot-scripts rev 33
Modify home=* again...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 23 19:40:09 2008 +0100 (2008-02-23) |
parents | 8d77d0bba811 |
children | 85421faee535 |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Sat Feb 23 19:10:03 2008 +0100 1.2 +++ b/etc/init.d/bootopts.sh Sat Feb 23 19:40:09 2008 +0100 1.3 @@ -13,13 +13,14 @@ 1.4 1.5 DEVID=$DEVICE 1.6 if [ -x /sbin/blkid ]; then 1.7 - #can be label, uuid or devname 1.8 + # Can be label, uuid or devname. DEVID give us /dev/name and 1.9 + # DEVICE give us disk name without /dev/. 1.10 DEVID=`/sbin/blkid | grep $DEVICE | cut -d: -f1` 1.11 fi 1.12 if [ -n "$DEVID" ] && grep -q "$DEVICE" /proc/partitions ; then 1.13 - echo "Mounting /home on /dev/$DEVID... " 1.14 + echo "Mounting /home on /dev/$DEVICE... " 1.15 mv /home/hacker /tmp/hacker-home 1.16 - mount -o uid=500,gid=500 /dev/$DEVID /home 1.17 + mount -o uid=500,gid=500 /dev/$DEVICE /home 1.18 else 1.19 echo "Unable to find $DEVICE... " 1.20 fi