allow /var/etc/fstab and /var/etc/autofs.* only for netfs setup

Origin commit data
------------------
Commit: 5a0c4bb181
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-12-12 (Thu, 12 Dec 2019)

Origin message was:
------------------
- allow /var/etc/fstab and /var/etc/autofs.* only for netfs setup
This commit is contained in:
vanhofen
2019-12-12 22:51:48 +01:00
parent bb14b8d38f
commit 0e688b02cf
11 changed files with 29 additions and 43 deletions

View File

@@ -306,7 +306,7 @@ do_automount_getline()
do_automount_setline()
{
if ! [ -e $1 ]; then
cp /etc/auto.net $1
cp /var/etc/auto.net $1
fi
filename=$1
mountname=`echo "$2"|sed -e "s;---;;g"`