From ab90884a33d5596bfc3bdddfea7c1c4d90eb908c Mon Sep 17 00:00:00 2001 From: dobrek Date: Wed, 23 Oct 2002 13:26:30 +0000 Subject: [PATCH] - Added the option for turning on and off the use of YP Changed files: autofs.init -> 1.17 autofs.sysconfig -> 1.2 --- autofs.init | 2 ++ autofs.sysconfig | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.43.0