Compare commits
1 Commits
artix-conf
...
new-netmou
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8591a0ea73 |
@@ -4,11 +4,24 @@
|
|||||||
|
|
||||||
description="Mounts network shares according to /etc/fstab."
|
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()
|
depend()
|
||||||
{
|
{
|
||||||
config /etc/fstab
|
config /etc/fstab
|
||||||
use afc-client amd nfsclient autofs openvpn
|
use afc-client amd nfsclient autofs openvpn
|
||||||
use dns
|
use dns
|
||||||
|
local fs_services ="$(get_fs_services)"
|
||||||
|
[ -n "$fs_services" ] && use $fs_services
|
||||||
keyword -jail -prefix -systemd-nspawn -vserver -lxc
|
keyword -jail -prefix -systemd-nspawn -vserver -lxc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user