#! /bin/sh # Based on the next file # Copyright (c) 1996-98 SuSE GmbH Nuernberg, Germany. All rights reserved. # # Author: Burchard Steinbild , 1996 # # /sbin/init.d/dummy # . /etc/rc.config base=${0##*/} link=${base#*[SK][0-9][0-9]} pvfstab=/etc/pvfstab return=$rc_done case "$1" in start) echo -n "Mounting pvfs tree" while read where what type options rest ; do case "$where" in \#*|"") ;; *) (/usr/local/bin/mount.pvfs $where $what) || \ return=$rc_failed esac done < $pvfstab echo -e "$return" ;; stop) echo -n "Unmounting pvfs tree" while read where what type options rest ; do case "$where" in \#*|"") ;; *) (umount $what) || \ return=$rc_failed esac done < $pvfstab echo -e "$return" ;; reload|restart) $0 stop && $0 start || return=$rc_failed ;; status) echo "Not yet implemented" ;; *) echo "Usage: $0 {start|stop|restart|reload|status}" exit 1 esac test "$return" = "$rc_done" || exit 1 exit 0