[Fai-commit] r4010 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Sun Sep 24 19:03:34 UTC 2006


Author: lange
Date: 2006-09-24 19:03:31 +0000 (Sun, 24 Sep 2006)
New Revision: 4010

Modified:
   trunk/bin/make-fai-nfsroot
Log:
use ainsl instead of "grep -v || echo"


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2006-09-24 19:01:42 UTC (rev 4009)
+++ trunk/bin/make-fai-nfsroot	2006-09-24 19:03:31 UTC (rev 4010)
@@ -236,8 +236,8 @@
     [ -d $NFSROOT/var/state ] || mkdir $NFSROOT/var/state
     cp -a $cfdir/apt $NFSROOT/etc
 
-    egrep -q "127.0.0.1" etc/hosts 2>/dev/null || echo "127.0.0.1 localhost" >> etc/hosts
-    egrep -q "$NFSROOT_ETC_HOSTS" etc/hosts 2>/dev/null || echo "$NFSROOT_ETC_HOSTS" >> etc/hosts
+    ainsl "127.0.0.1 localhost" >> etc/hosts
+    ainsl "$NFSROOT_ETC_HOSTS" >> etc/hosts
     add_all_host_entries
 
     # we need these option before installing the first package. So we




More information about the Fai-commit mailing list