X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=8c9e0bb88e009c9a47cfe5ba92202944c06f27f7;hb=aebae95cc3450cf995920a1b5563527923e5f4fc;hp=bf9a5aa2b66b03d49253a02700fd13fac1f6b93c;hpb=d1fbaa461c985609e7171a74e2355a5fc6d86c69;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index bf9a5aa..8c9e0bb 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -486,35 +486,6 @@ add_suffix() { return 0 } -# Network filesystems list for common use in rc-scripts. -# This variable is used in is_net_fs and other places such as -# localmount. -NET_FS_LIST="afs cifs coda gfs ncpfs nfs nfs4 shfs smbfs" - -# bool is_net_fs(path) -# -# return 0 if path is the mountpoint of a networked filesystem -# -# EXAMPLE: if is_net_fs / ; then ... -# -is_net_fs() { - local fstype - # /proc/mounts is always accurate but may not always be available - if [ -e /proc/mounts ]; then - fstype="$( sed -n -e '/^rootfs/!s:.* '"$1"' \([^ ]*\).*:\1:p' /proc/mounts )" - else - fstype="$( mount | sed -n -e 's:.* on '"$1"' type \([^ ]*\).*:\1:p' )" - fi - case " ${NET_FS_LIST} " in - *" ${fstype} "*) - return 0 - ;; - *) - return 1 - ;; - esac -} - # bool is_uml_sys() # # return 0 if the currently running system is User Mode Linux