From f75d1368283830d7ddd96d3911e6ae62f5d31e9e Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 19 Dec 2013 01:41:19 -0800 Subject: [PATCH] grep in busybox do not support long optipn string, use short instead --- .../share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat index a5034460e..461dc0867 100755 --- a/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat +++ b/xCAT-server/share/xcat/netboot/add-on/statelite/rc.statelite.ppc.redhat @@ -577,6 +577,6 @@ ResolveLinks # foo # If the resolv.conf is not setup in rootimg, copy the dhcp generated one into rootimg -if grep --quiet --no-messages "Dummy resolv.conf" "$MNTDIR/etc/resolv.conf"; then +if grep -q -s "Dummy resolv.conf" "$MNTDIR/etc/resolv.conf"; then /bin/cat /etc/resolv.conf > $MNTDIR/etc/resolv.conf fi