From: dobrek Date: Wed, 23 Oct 2002 13:26:30 +0000 (+0000) Subject: - Added the option for turning on and off the use of YP X-Git-Tag: auto/ac/autofs-4_0_0pre10-6~12 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fautofs.git;a=commitdiff_plain;h=ab90884a33d5596bfc3bdddfea7c1c4d90eb908c - Added the option for turning on and off the use of YP Changed files: autofs.init -> 1.17 autofs.sysconfig -> 1.2 --- diff --git a/autofs.init b/autofs.init index 7bece75..cb24d77 100644 --- a/autofs.init +++ b/autofs.init @@ -66,6 +66,7 @@ fi # # Check for YellowPage maps to be loaded # +if is_yes $USE_YP; then if [ -e /usr/bin/ypcat ] && [ `ypcat -k auto.master 2>/dev/null | wc -l` -gt 0 ] then ypcat -k auto.master | ( @@ -87,6 +88,7 @@ then done ) fi +fi } # diff --git a/autofs.sysconfig b/autofs.sysconfig index 27c7e51..ce6d0bd 100644 --- a/autofs.sysconfig +++ b/autofs.sysconfig @@ -4,3 +4,5 @@ # completely. # TIMEOUT=60 +# Set it to yes if you want autofs to take maps from YP +USE_YP=no