summaryrefslogtreecommitdiff
path: root/import-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
diff options
context:
space:
mode:
authorDave Cobbley <david.j.cobbley@linux.intel.com>2018-08-14 20:05:37 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-08-23 04:26:31 +0300
commiteb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch)
treede291a73dc37168da6370e2cf16c347d1eba9df8 /import-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
parent9c3cf826d853102535ead04cebc2d6023eff3032 (diff)
downloadopenbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.xz
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh')
-rwxr-xr-ximport-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh88
1 files changed, 0 insertions, 88 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/import-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
deleted file mode 100755
index fe6c19605..000000000
--- a/import-layers/yocto-poky/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides: mountnfs
-# Required-Start: $local_fs $network $rpcbind
-# Required-Stop:
-# Default-Start: S
-# Default-Stop:
-### END INIT INFO
-
-#
-# Run in a subshell because of I/O redirection.
-#
-test -f /etc/fstab && (
-
-#
-# Read through fstab line by line. If it is NFS, set the flag
-# for mounting NFS filesystems. If any NFS partition is found and it
-# not mounted with the nolock option, we start the rpcbind.
-#
-rpcbind=no
-mount_nfs=no
-mount_smb=no
-mount_ncp=no
-mount_cifs=no
-while read device mountpt fstype options
-do
- case "$device" in
- ""|\#*)
- continue
- ;;
- esac
-
- case "$options" in
- *noauto*)
- continue
- ;;
- esac
-
- if test "$fstype" = nfs
- then
- mount_nfs=yes
- case "$options" in
- *nolock*)
- ;;
- *)
- rpcbind=yes
- ;;
- esac
- fi
- if test "$fstype" = smbfs
- then
- mount_smb=yes
- fi
- if test "$fstype" = ncpfs
- then
- mount_ncp=yes
- fi
- if test "$fstype" = cifs
- then
- mount_cifs=yes
- fi
-done
-
-exec 0>&1
-
-if test "$rpcbind" = yes
-then
- if test -x /usr/sbin/rpcbind
- then
- echo -n "Starting rpcbind... "
- start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
- sleep 2
- fi
-fi
-
-if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes || test "$mount_cifs" = yes
-then
- echo "Mounting remote filesystems..."
- test "$mount_nfs" = yes && mount -a -t nfs
- test "$mount_smb" = yes && mount -a -t smbfs
- test "$mount_ncp" = yes && mount -a -t ncpfs
- test "$mount_cifs" = yes && mount -a -t cifs
-fi
-
-) < /etc/fstab
-
-: exit 0
-