diff options
| author | William Hubbs <w.d.hubbs@gmail.com> | 2015-08-06 08:35:20 -0500 |
|---|---|---|
| committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-08-06 16:07:02 -0500 |
| commit | 8591a0ea733f85bffc24d5a12e8481886e2b1350 (patch) | |
| tree | e1b5cd94d9770ee53b3da27560b4130e866a96ef | |
| parent | 6a422982579786cb8308af04ccca6622afa06e50 (diff) | |
Make netmount look up services for file systemsorigin/new-netmountgithub/new-netmount
| -rw-r--r-- | init.d/netmount.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/init.d/netmount.in b/init.d/netmount.in index 66ba4090..1e439218 100644 --- a/init.d/netmount.in +++ b/init.d/netmount.in @@ -4,11 +4,24 @@ description="Mounts network shares according to /etc/fstab." +get_fs_services() +{ + local fsclient fstype list=$(ls $RC_LIBEXECDIR/netfs/*) services + local x + for x in $list; do + fstype=${x##*/} + fstabinfo -q -t ${fstype} && services="${services} $(cat x)" + done + printf "%s\n" $services + } + depend() { config /etc/fstab use afc-client amd nfsclient autofs openvpn use dns + local fs_services ="$(get_fs_services)" + [ -n "$fs_services" ] && use $fs_services keyword -jail -prefix -systemd-nspawn -vserver -lxc } |
