From c500c8cc0c4901063eb5dc64350d24ed134b423c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Mon, 26 Jun 2006 21:32:08 +0000 Subject: [PATCH] - add OPTIONS and make it by default "--ghost" Changed files: autofs.init -> 1.29 autofs.sysconfig -> 1.3 --- autofs.init | 10 +++++----- autofs.sysconfig | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/autofs.init b/autofs.init index 6370f0a..aff3f17 100644 --- a/autofs.init +++ b/autofs.init @@ -54,11 +54,11 @@ if [ -f /etc/autofs/auto.master ]; then map=`echo "/etc/autofs/$map" | sed -e 's:^/etc\/autofs//:/:'` options=`echo "$options" | sed -e 's/\(^\|[ \t]\)-/\1/g'` if [ -x $map ]; then - echo "$DAEMON --timeout $TIMEOUT $dir program $map $options" + echo "$DAEMON --timeout ${TIMEOUT} ${OPTIONS} $dir program $map $options" elif [ -f $map ]; then - echo "$DAEMON --timeout $TIMEOUT $dir file $map $options" + echo "$DAEMON --timeout ${TIMEOUT} ${OPTIONS} $dir file $map $options" else - echo "$DAEMON --timeout $TIMEOUT $dir `basename $map` $options" + echo "$DAEMON --timeout ${TIMEOUT} ${OPTIONS} $dir `basename $map` $options" fi else map=`echo $map | cut -f2- -d:` @@ -66,7 +66,7 @@ if [ -f /etc/autofs/auto.master ]; then if [ "$maptype" = "file" ]; then map=`echo "/etc/autofs/$map" | sed -e 's:^/etc\/autofs//:/:'` fi - echo "$DAEMON --timeout $TIMEOUT $dir $maptype $map $options" + echo "$DAEMON --timeout $TIMEOUT ${OPTIONS} $dir $maptype $map $options" fi fi fi @@ -93,7 +93,7 @@ if is_yes $USE_YP; then options=`echo "$options" | sed -e ' s/--*t\(imeout\)*[ \t]*[0-9][0-9]*//g s/\(^\|[ \t]\)-/\1/g'` - echo "$DAEMON --timeout $TIMEOUT $mountoptions \ + echo "$DAEMON --timeout $TIMEOUT ${OPTIONS} $mountoptions \ $dir yp $map $options" fi done diff --git a/autofs.sysconfig b/autofs.sysconfig index ce6d0bd..065867a 100644 --- a/autofs.sysconfig +++ b/autofs.sysconfig @@ -6,3 +6,6 @@ TIMEOUT=60 # Set it to yes if you want autofs to take maps from YP USE_YP=no + +# Additional daemon options +OPTIONS="-g" -- 2.44.0