From 66a4da229f3fa9adb6ba31b3305756f1baa5006f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Sikora?= Date: Fri, 14 Nov 2008 09:28:32 +0000 Subject: [PATCH] - minimal hack to make it works. autofs5 has totally different syntax. Changed files: autofs.init -> 1.31 --- autofs.init | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/autofs.init b/autofs.init index 1ba4b2f..076f405 100644 --- a/autofs.init +++ b/autofs.init @@ -107,7 +107,8 @@ start() { if [ ! -f /var/lock/subsys/autofs ]; then msg_starting automounter busy - getmounts | sh +# getmounts | sh + $DAEMON --timeout $TIMEOUT /etc/autofs/auto.master RETVAL=$? [ $RETVAL -eq 0 ] && ok || fail [ $RETVAL -eq 0 ] && touch /var/lock/subsys/autofs @@ -139,15 +140,15 @@ case "$1" in stop start ;; - status) - nls "Configured Mount Points:" - getmounts - echo "" - nls "Active Mount Points:" - ps axw|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( - while read pid tt stat time command; do echo $command; done - ) - ;; +# status) +# nls "Configured Mount Points:" +# getmounts +# echo "" +# nls "Active Mount Points:" +# ps axw|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( +# while read pid tt stat time command; do echo $command; done +# ) +# ;; *) msg_usage "$0 {start|stop|restart|force-reload|status}" exit 3 -- 2.44.0