summaryrefslogtreecommitdiffstats
path: root/disk/autofs/INSTALL
blob: 9f862b408931764e22a22bfa631131aad335f967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
default_install  &&

if  [  !  -f   /etc/modules.d/autofs  ];  then
  mkdir   -p   /etc/modules.d                 &&
  cp           $SCRIPT_DIRECTORY/modules.d/*  \
               /etc/modules.d
fi  &&

MOD="/etc/modules.conf"               &&
INC="include  /etc/modules.d/autofs"  &&

grep    -q  "$INC"      $MOD  ||
echo        "$INC"  >>  $MOD  &&

# together with disabling the samples subdir, we should now
# _not_ delete the admin's config on every cast
for  FILE  in  auto.home auto.master auto.misc
do install_config_file "$SCRIPT_DIRECTORY/$FILE" "$INSTALL_ROOT/etc/$FILE"
done