--- /etc/rc.d/autofs.orig 2007-04-16 23:31:54.000000000 -0300 +++ /etc/rc.d/autofs 2007-04-17 01:02:49.000000000 -0300 @@ -277,23 +277,29 @@ BEGIN { FS="=" daemon_opts[ "timeout" ] = "timeout" daemon_opts[ "t" ] = "timeout" + daemon_opts[ "ghost" ] = "ghost" + daemon_opts[ "g" ] = "ghost" } { if ( $0 ~ /^$/ ) next if ( $1 in daemon_opts ) { daemon[ daemon_opts[ $1 ] ] = $2 - } else if ($1 ~ /^D.+/) { - defines[ $1 ] = $2 - } else { - mount[NR] = $0 + } else if ($1 ~ /^D.+/) { + defines[ $1 ] = $2 + } else { + mount[NR] = $0 } } END { if ( which ~ "^daemon$" ) { - if ( "timeout" in daemon ) { - printf "--timeout=%s\n", daemon["timeout"] + for ( parameter in daemon ) { + if ( daemon[ parameter ] ~ /^$/ ) + printf "--%s ", parameter + else + printf "--%s=%s ", parameter, daemon[ parameter ] } + printf "\n" } else { for ( a in defines ) { printf "-%s=%s ", a, defines[a]