aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-07 06:48:29 +0000
committerBill Nottingham <notting@redhat.com>2001-08-07 06:48:29 +0000
commit644a0180b7e35b3286616517ca589c9bd5608c81 (patch)
tree4aca889e63ebc7237519b9d9cc73ce48ffdb847e /rc.d/init.d
parentd34451922aebdabfc5495b174ad960b0a0188304 (diff)
downloadinitscripts-644a0180b7e35b3286616517ca589c9bd5608c81.tar
initscripts-644a0180b7e35b3286616517ca589c9bd5608c81.tar.gz
initscripts-644a0180b7e35b3286616517ca589c9bd5608c81.tar.bz2
initscripts-644a0180b7e35b3286616517ca589c9bd5608c81.tar.xz
initscripts-644a0180b7e35b3286616517ca589c9bd5608c81.zip
use awk, not grep & other cruft (#49616)
exit happily if ifup is called on a device that doesn't exist and has no alias (fixes all those nasty PCMCIA onboot complaints)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index b1983871..7ab4ec75 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -31,7 +31,7 @@ fi
# If IPv6 is explicitly configured, make sure it's available.
if [ "$NETWORKING_IPV6" = "yes" ]; then
- alias=`modprobe -c | grep net-pf-10 | awk '{ print $3 }'`
+ alias=`modprobe -c | awk '/^alias net-pf-10 / { print $3 }'`
if [ "$alias" != "ipv6" -a ! -f /proc/net/if_inet6 ]; then
echo "alias net-pf-10 ipv6" >> /etc/modules.conf
fi