diff options
Diffstat (limited to 'rc.d/init.d/netfs')
-rwxr-xr-x | rc.d/init.d/netfs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs index fbb8ce64..3d18afd6 100755 --- a/rc.d/init.d/netfs +++ b/rc.d/init.d/netfs @@ -35,10 +35,10 @@ case "$1" in [ -n "$NFSFSTAB" ] && { [ ! -f /var/lock/subsys/portmap ] && service portmap start - action "Mounting NFS filesystems: " mount -a -t nfs + action "Mounting %s filesystems: " NFS mount -a -t nfs } - [ -n "$SMBFSTAB" ] && action "Mounting SMB filesystems: " mount -a -t smbfs - [ -n "$NCPFSTAB" ] && action "Mounting NCP filesystems: " mount -a -t ncpfs + [ -n "$SMBFSTAB" ] && action "Mounting %s filesystems: " SMB mount -a -t smbfs + [ -n "$NCPFSTAB" ] && action "Mounting %s filesystems: " NCP mount -a -t ncpfs touch /var/lock/subsys/netfs action "Mounting other filesystems: " mount -a -t nonfs,smbfs,ncpfs ;; @@ -50,9 +50,9 @@ case "$1" in while [ -n "$remaining" -a "$retry" -gt 0 ] do if [ "$retry" -lt 3 ]; then - action "Unmounting NFS filesystems (retry): " umount -f -a -t nfs + action "Unmounting %s filesystems (retry): " NFS umount -f -a -t nfs else - action "Unmounting NFS filesystems: " umount -f -a -t nfs + action "Unmounting %s filesystems: " NFS umount -f -a -t nfs fi sleep 2 remaining=`awk '!/^#/ && $3 ~ /^nfs/ && $2 != "/" {print $2}' /proc/mounts` @@ -63,38 +63,38 @@ case "$1" in sig=-9 done } - [ -n "$SMBMTAB" ] && action "Unmounting SMB filesystems: " umount -a -t smbfs - [ -n "$NCPMTAB" ] && action "Unmounting NCP filesystems: " umount -a -t ncpfs + [ -n "$SMBMTAB" ] && action "Unmounting %s filesystems: " SMB umount -a -t smbfs + [ -n "$NCPMTAB" ] && action "Unmounting %s filesystems: " NCP umount -a -t ncpfs rm -f /var/lock/subsys/netfs ;; status) if [ -f /proc/mounts ] ; then [ -n "$NFSFSTAB" ] && { - echo "Configured NFS mountpoints: " + gprintf "Configured %s mountpoints:\n" NFS for fs in $NFSFSTAB; do echo $fs ; done } [ -n "$SMBFSTAB" ] && { - echo "Configured SMB mountpoints: " + gprintf "Configured %s mountpoints:\n" SMB for fs in $SMBFSTAB; do echo $fs ; done } [ -n "$NCPFSTAB" ] && { - echo "Configured NCP mountpoints: " + gprintf "Configured %s mountpoints:\n" NCP for fs in $NCPFSTAB; do echo $fs ; done } [ -n "$NFSMTAB" ] && { - echo "Active NFS mountpoints: " + gprintf "Active %s mountpoints:\n" NFS for fs in $NFSMTAB; do echo $fs ; done } [ -n "$SMBMTAB" ] && { - echo "Active SMB mountpoints: " + gprintf "Active %s mountpoints:\n" SMB for fs in $SMBMTAB; do echo $fs ; done } [ -n "$NCPMTAB" ] && { - echo "Active NCP mountpoints: " + gprintf "Active %s mountpoints:\n" NCP for fs in $NCPMTAB; do echo $fs ; done } else - echo "/proc filesystem unavailable" + gprintf "/proc filesystem unavailable\n" fi ;; restart) @@ -105,7 +105,7 @@ case "$1" in $0 start ;; *) - echo "Usage: netfs {start|stop|restart|reload|status}" + gprintf "Usage: %s {start|stop|restart|reload|status}\n" netfs exit 1 esac |