aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netfs
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-04-02 10:11:15 -0400
committerBill Nottingham <notting@redhat.com>2009-04-02 10:11:15 -0400
commitaa7b0afc8869b2915678f1dc25b5ffd0d1fa3088 (patch)
treeac6b2c47b70cff3cd287e35853340494bcb0a9e0 /rc.d/init.d/netfs
parent989ead8a3bbc9f4e387a653f04a73579ed9db96f (diff)
downloadinitscripts-aa7b0afc8869b2915678f1dc25b5ffd0d1fa3088.tar
initscripts-aa7b0afc8869b2915678f1dc25b5ffd0d1fa3088.tar.gz
initscripts-aa7b0afc8869b2915678f1dc25b5ffd0d1fa3088.tar.bz2
initscripts-aa7b0afc8869b2915678f1dc25b5ffd0d1fa3088.tar.xz
initscripts-aa7b0afc8869b2915678f1dc25b5ffd0d1fa3088.zip
Drop smbfs support - both the kernel module and the userspace helper are long gone.
Diffstat (limited to 'rc.d/init.d/netfs')
-rwxr-xr-xrc.d/init.d/netfs16
1 files changed, 2 insertions, 14 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index 0cc5a406..b0fbed59 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -8,7 +8,7 @@
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
-# SMB/CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
+# CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
@@ -20,13 +20,11 @@
. /etc/sysconfig/network
NFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
-SMBFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
CIFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NCPFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NETDEVFSTAB=`LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab`
NFSMTAB=`LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts`
-SMBMTAB=`LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts`
CIFSMTAB=`LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts`
NCPMTAB=`LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts`
NETDEVMTAB=`LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab`
@@ -40,7 +38,6 @@ case "$1" in
[ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
}
- [ -n "$SMBFSTAB" ] && action $"Mounting SMB filesystems: " mount -a -t smbfs
[ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
[ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
[ -n "$NETDEVFSTAB" ] &&
@@ -95,7 +92,7 @@ case "$1" in
fi
}
touch /var/lock/subsys/netfs
- action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs
+ action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
;;
stop)
# Unmount loopback stuff first
@@ -113,7 +110,6 @@ case "$1" in
$"Unmounting NFS filesystems (retry): " \
"-f -l"
fi
- [ -n "$SMBMTAB" ] && action $"Unmounting SMB filesystems: " umount -a -t smbfs
[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
rm -f /var/lock/subsys/netfs
@@ -124,10 +120,6 @@ case "$1" in
echo $"Configured NFS mountpoints: "
for fs in $NFSFSTAB; do echo $fs ; done
}
- [ -n "$SMBFSTAB" ] && {
- echo $"Configured SMB mountpoints: "
- for fs in $SMBFSTAB; do echo $fs ; done
- }
[ -n "$CIFSFSTAB" ] && {
echo $"Configured CIFS mountpoints: "
for fs in $CIFSFSTAB; do echo $fs ; done
@@ -144,10 +136,6 @@ case "$1" in
echo $"Active NFS mountpoints: "
for fs in $NFSMTAB; do echo $fs ; done
}
- [ -n "$SMBMTAB" ] && {
- echo $"Active SMB mountpoints: "
- for fs in $SMBMTAB; do echo $fs ; done
- }
[ -n "$CIFSMTAB" ] && {
echo $"Active CIFS mountpoints: "
for fs in $CIFSMTAB; do echo $fs ; done