aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netfs
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-23 19:59:11 +0000
committerBill Nottingham <notting@redhat.com>2001-01-23 19:59:11 +0000
commita4a25465cd2844d72bf518188b813c009450f505 (patch)
tree25ca5df7db282aa4202813aba3c0e18083927c25 /rc.d/init.d/netfs
parentbee84f538da8b1d5885975c119bfd7fd5ae7e9a3 (diff)
downloadinitscripts-a4a25465cd2844d72bf518188b813c009450f505.tar
initscripts-a4a25465cd2844d72bf518188b813c009450f505.tar.gz
initscripts-a4a25465cd2844d72bf518188b813c009450f505.tar.bz2
initscripts-a4a25465cd2844d72bf518188b813c009450f505.tar.xz
initscripts-a4a25465cd2844d72bf518188b813c009450f505.zip
change i18n stuff around; don't call gettext explicitly, just do echo $"some string"
Diffstat (limited to 'rc.d/init.d/netfs')
-rwxr-xr-xrc.d/init.d/netfs30
1 files changed, 15 insertions, 15 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index 3d18afd6..8b51408c 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 %s filesystems: " NFS mount -a -t nfs
+ action "Mounting NFS filesystems: " mount -a -t nfs
}
- [ -n "$SMBFSTAB" ] && action "Mounting %s filesystems: " SMB mount -a -t smbfs
- [ -n "$NCPFSTAB" ] && action "Mounting %s filesystems: " NCP mount -a -t ncpfs
+ [ -n "$SMBFSTAB" ] && action "Mounting SMB filesystems: " mount -a -t smbfs
+ [ -n "$NCPFSTAB" ] && action "Mounting NCP filesystems: " 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 %s filesystems (retry): " NFS umount -f -a -t nfs
+ action "Unmounting NFS filesystems (retry): " umount -f -a -t nfs
else
- action "Unmounting %s filesystems: " NFS umount -f -a -t nfs
+ action "Unmounting NFS filesystems: " 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 %s filesystems: " SMB umount -a -t smbfs
- [ -n "$NCPMTAB" ] && action "Unmounting %s filesystems: " NCP umount -a -t ncpfs
+ [ -n "$SMBMTAB" ] && action "Unmounting SMB filesystems: " umount -a -t smbfs
+ [ -n "$NCPMTAB" ] && action "Unmounting NCP filesystems: " umount -a -t ncpfs
rm -f /var/lock/subsys/netfs
;;
status)
if [ -f /proc/mounts ] ; then
[ -n "$NFSFSTAB" ] && {
- gprintf "Configured %s mountpoints:\n" NFS
+ echo $"Configured NFS mountpoints: "
for fs in $NFSFSTAB; do echo $fs ; done
}
[ -n "$SMBFSTAB" ] && {
- gprintf "Configured %s mountpoints:\n" SMB
+ echo $"Configured SMB mountpoints: "
for fs in $SMBFSTAB; do echo $fs ; done
}
[ -n "$NCPFSTAB" ] && {
- gprintf "Configured %s mountpoints:\n" NCP
+ echo $"Configured NCP mountpoints: "
for fs in $NCPFSTAB; do echo $fs ; done
}
[ -n "$NFSMTAB" ] && {
- gprintf "Active %s mountpoints:\n" NFS
+ echo $"Active NFS mountpoints: "
for fs in $NFSMTAB; do echo $fs ; done
}
[ -n "$SMBMTAB" ] && {
- gprintf "Active %s mountpoints:\n" SMB
+ echo $"Active SMB mountpoints: "
for fs in $SMBMTAB; do echo $fs ; done
}
[ -n "$NCPMTAB" ] && {
- gprintf "Active %s mountpoints:\n" NCP
+ echo $"Active NCP mountpoints: "
for fs in $NCPMTAB; do echo $fs ; done
}
else
- gprintf "/proc filesystem unavailable\n"
+ echo $"/proc filesystem unavailable"
fi
;;
restart)
@@ -105,7 +105,7 @@ case "$1" in
$0 start
;;
*)
- gprintf "Usage: %s {start|stop|restart|reload|status}\n" netfs
+ echo $"Usage: netfs {start|stop|restart|reload|status}"
exit 1
esac