summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/autofs/run
blob: c0800a2a8fb3c3731c5a475ac3000eb8c84775f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
exec 2>&1

. /etc/rc.conf
. /etc/rc.d/functions

stat_runit "Starting autofs automount" && echo ""
# source application-specific settings
[ -f /etc/conf.d/autofs ] && . /etc/conf.d/autofs

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

exec /usr/bin/automount -f $daemonoptions