NONIS Patch
Andreas Schockenhoff
asc at gmx.li
Sat Aug 30 21:41:41 CEST 2003
Hi,
I am back to fai. Great software!
If I define the class NONIS I think on the target computer no NIS should
be install (correct me if this is a bad idea).
Here is a small patch that will do this.
===================================================================
RCS file: /var/lib/cvs/fai/class/24nis,v
retrieving revision 1.1
retrieving revision 1.1.1.2
diff -u -r1.1 -r1.1.1.2
--- fai/class/24nis 2003/08/27 17:05:39 1.1
+++ fai/class/24nis 2003/08/30 19:06:58 1.1.1.2
@@ -1,9 +1,10 @@
#! /bin/sh
-
# add NIS if YPDOMAIN is defined
+if !(ifclass NONIS;) then
if [ -n "$YPDOMAIN" ];then
echo "NIS $YPDOMAIN" | tr '.a-z-' '_A-Z_'
else
echo NONIS
+fi
fi
======================================================================
bye Andreas
More information about the linux-fai
mailing list