aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rc.autofs.in
diff options
context:
space:
mode:
Diffstat (limited to 'samples/rc.autofs.in')
-rw-r--r--samples/rc.autofs.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/samples/rc.autofs.in b/samples/rc.autofs.in
index 9e15bd6..86aa26a 100644
--- a/samples/rc.autofs.in
+++ b/samples/rc.autofs.in
@@ -20,9 +20,10 @@
FLAGS="defaults 21"
#
-# Location of the automount daemon
+# Location of the automount daemon and the init directory
#
DAEMON=@@sbindir@@/automount
+initdir=@@initdir@@
#
# Determine which kind of configuration we're using
@@ -30,10 +31,8 @@ DAEMON=@@sbindir@@/automount
system=unknown
if [ -f /etc/debian_version ]; then
system=debian
- initdir=/etc/init.d
elif [ -f /etc/redhat-release ]; then
system=redhat
- initdir=/etc/rc.d/init.d
else
echo "$0: Unknown system, please port and contact autofs@linux.kernel.org" 1>&2
exit 1