# HG changeset patch # User Christophe Lincoln # Date 1203792009 -3600 # Node ID 7c50c87a68f46f76ff381803aaacd4703ad57c26 # Parent 8d77d0bba81147cb490fff172ba3cc0f141f4a51 Modify home=* again... diff -r 8d77d0bba811 -r 7c50c87a68f4 etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Sat Feb 23 19:10:03 2008 +0100 +++ b/etc/init.d/bootopts.sh Sat Feb 23 19:40:09 2008 +0100 @@ -13,13 +13,14 @@ DEVID=$DEVICE if [ -x /sbin/blkid ]; then - #can be label, uuid or devname + # Can be label, uuid or devname. DEVID give us /dev/name and + # DEVICE give us disk name without /dev/. DEVID=`/sbin/blkid | grep $DEVICE | cut -d: -f1` fi if [ -n "$DEVID" ] && grep -q "$DEVICE" /proc/partitions ; then - echo "Mounting /home on /dev/$DEVID... " + echo "Mounting /home on /dev/$DEVICE... " mv /home/hacker /tmp/hacker-home - mount -o uid=500,gid=500 /dev/$DEVID /home + mount -o uid=500,gid=500 /dev/$DEVICE /home else echo "Unable to find $DEVICE... " fi