aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-02-07 03:19:47 +0000
committerBill Nottingham <notting@redhat.com>2002-02-07 03:19:47 +0000
commit56e8d24c384fd578c5588cf949fbf5cb6cd7ec79 (patch)
tree3cb054d7ca2e78c316854585be28d4f9ade75971
parenta8ca56f0f4f841e40a4464cd5018c5e879a24cb2 (diff)
downloadinitscripts-56e8d24c384fd578c5588cf949fbf5cb6cd7ec79.tar
initscripts-56e8d24c384fd578c5588cf949fbf5cb6cd7ec79.tar.gz
initscripts-56e8d24c384fd578c5588cf949fbf5cb6cd7ec79.tar.bz2
initscripts-56e8d24c384fd578c5588cf949fbf5cb6cd7ec79.tar.xz
initscripts-56e8d24c384fd578c5588cf949fbf5cb6cd7ec79.zip
modprobe interface name, not alias name (#55380)
make sure su calls bash (#55288)
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 991b5370..334c351d 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -71,7 +71,7 @@ do_netreport ()
OWNER=`ls -l $i | awk '{ print $3 }'`
if [ "`id -u`" = "0" ]; then
- su $OWNER -c "kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1" > /dev/null 2>&1
+ su -s /bin/bash $OWNER -c "kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1" > /dev/null 2>&1
else
kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1
fi
@@ -88,7 +88,7 @@ is_available ()
if [ -z "$alias" -o "$alias" = "off" ]; then
return 2
fi
- modprobe $alias >/dev/null 2>&1|| {
+ modprobe $1 >/dev/null 2>&1|| {
return 1
}
else