#!/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