summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/autofs/run
blob: 7d146fc23cc713be05f29f604d3040a8a43d5567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
exec 2>&1
set -e  # barf if modprobe fails
/sbin/modprobe autofs4
#exec /etc/rc.d/autofs start

# source application-specific settings
[ -f /etc/conf.d/autofs ] && . /etc/conf.d/autofs

if [ ! -z "$TIMEOUT" ]; then
  daemonoptions="--timeout=$TIMEOUT $daemonoptions"
fi

exec /usr/sbin/automount -f $daemonoptions