Author: glen Date: Sun Sep 25 20:04:37 2005 GMT Module: SPECS Tag: HEAD ---- Log message: - remove redundant grep; use sed 4.0
---- Files affected: SPECS: nps.spec (1.8 -> 1.9) ---- Diffs: ================================================================ Index: SPECS/nps.spec diff -u SPECS/nps.spec:1.8 SPECS/nps.spec:1.9 --- SPECS/nps.spec:1.8 Sun Sep 25 21:38:42 2005 +++ SPECS/nps.spec Sun Sep 25 22:04:31 2005 @@ -18,6 +18,7 @@ # Source0-md5: 5c843ff779f10722b314433b7e8f1210 URL: http://www.newisys.com/ %{!?_without_dist_kernel:BuildRequires: kernel-headers } +Requires: sed >= 4.0 # we only support linux ExclusiveOS: Linux BuildRequires: pciutils-devel @@ -73,7 +74,7 @@ /sbin/chkconfig --add poci # this is needed to run poci after an install without having to reboot - if ( uname -r | grep -v "grep" | grep -q "2.4.2[01]-" ) + if ( uname -r | grep -q "2.4.2[01]-" ) then route del -net 169.254.0.0 gw 0 netmask 255.255.0.0 dev eth0 1>/dev/null 2>/dev/null route del -net 169.254.0.0 gw 0 netmask 255.255.0.0 dev eth1 1>/dev/null 2>/dev/null @@ -122,8 +123,7 @@ # 169.254.101.2 sp.D332B385-5567-42e9-8D66-545897E8120A if grep -q "169.254.101.2.*sp" /etc/hosts then - sed /169.254.101.2/d < /etc/hosts > /etc/hosts.bak - mv /etc/hosts.bak /etc/hosts + sed -i -e /169.254.101.2/d /etc/hosts fi fi @@ -156,6 +156,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.9 2005/09/25 20:04:31 glen +- remove redundant grep; use sed 4.0 + Revision 1.8 2005/09/25 19:38:42 baggins - updated to v2.3.0.9 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/nps.spec?r1=1.8&r2=1.9&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
