summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/autofs/run
diff options
context:
space:
mode:
authorUnconfigured <Unconfigured>2010-06-28 18:29:55 (GMT)
committerUnconfigured <Unconfigured>2010-06-28 18:29:55 (GMT)
commit25d4840e95d5e669f9e09ce23615eaa5051a247e (patch)
tree419e9211d84f80742dcfc5af19358a17e4e3659a /abs/extra-testing/autofs/run
parent0bbe602039486101ea393e258c71f49a32454e54 (diff)
downloadlinhes_pkgbuild-25d4840e95d5e669f9e09ce23615eaa5051a247e.zip
linhes_pkgbuild-25d4840e95d5e669f9e09ce23615eaa5051a247e.tar.gz
linhes_pkgbuild-25d4840e95d5e669f9e09ce23615eaa5051a247e.tar.bz2
autofs: Updated sv run to manage automount; removed finish and /etc/rc.d/autofs; added logger. closes #704
Diffstat (limited to 'abs/extra-testing/autofs/run')
-rwxr-xr-xabs/extra-testing/autofs/run11
1 files changed, 10 insertions, 1 deletions
diff --git a/abs/extra-testing/autofs/run b/abs/extra-testing/autofs/run
index b35a4ea..7d146fc 100755
--- a/abs/extra-testing/autofs/run
+++ b/abs/extra-testing/autofs/run
@@ -2,4 +2,13 @@
exec 2>&1
set -e # barf if modprobe fails
/sbin/modprobe autofs4
-exec /etc/rc.d/autofs start
+#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