Thursday, June 9, 2011

reiser4 mounter

#!/bin/sh
# chkconfig: 2345 99 00

case "$1" in
'start')
    /bin/mount /dev/sda7 /cache4
    /bin/mount /dev/sda8 /cache5
    /bin/mount /dev/sda9 /cache6
    touch /var/lock/subsys/mountcache
    ;;
'stop')
    /bin/umount /dev/sda7 /cache4
    /bin/umount /dev/sda8 /cache5
    /bin/umount /dev/sda9 /cache6
    rm -f /var/lock/subsys/mountcache
    ;;
*)
    echo "Usage: $0 { start | stop }"
    ;;
esac
exit 0