diff options
author | Cecil <knoppmyth@gmail.com> | 2011-01-09 23:52:01 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-01-09 23:52:01 (GMT) |
commit | 261d9eb4cd112769abffe0504f6b81fac985d2ca (patch) | |
tree | 17503d13205d82cf59fa4399a3e81f237bfaeb22 /abs/core/runit-scripts/runitscripts | |
parent | 99e067cd4dec53e41e16157a096c4ac0e16b588d (diff) | |
download | linhes_pkgbuild-261d9eb4cd112769abffe0504f6b81fac985d2ca.zip linhes_pkgbuild-261d9eb4cd112769abffe0504f6b81fac985d2ca.tar.gz linhes_pkgbuild-261d9eb4cd112769abffe0504f6b81fac985d2ca.tar.bz2 |
runit-scripts:added autofs's run file.
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/autofs/run | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/autofs/run b/abs/core/runit-scripts/runitscripts/services/autofs/run new file mode 100755 index 0000000..342ade6 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/autofs/run @@ -0,0 +1,19 @@ +#!/bin/sh +exec 2>&1 + +. /etc/rc.conf +. /etc/rc.d/functions + +stat_runit "Starting autofs4 kernel module" && echo "" +set -e # barf if modprobe fails +/sbin/modprobe autofs4 + +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/sbin/automount -f $daemonoptions |