aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-10 06:08:51 +0000
committerBill Nottingham <notting@redhat.com>2002-04-10 06:08:51 +0000
commitc11b6fc5c7594425c960f28a5eb761eaedeb730f (patch)
tree85f9cda96ea5afa85af288333fba5f07e9ab8f99 /sysconfig
parentdcd626dd7e766e70fc4996c774e0f61489d71d87 (diff)
downloadinitscripts-c11b6fc5c7594425c960f28a5eb761eaedeb730f.tar
initscripts-c11b6fc5c7594425c960f28a5eb761eaedeb730f.tar.gz
initscripts-c11b6fc5c7594425c960f28a5eb761eaedeb730f.tar.bz2
initscripts-c11b6fc5c7594425c960f28a5eb761eaedeb730f.tar.xz
initscripts-c11b6fc5c7594425c960f28a5eb761eaedeb730f.zip
use full path to /sbin/ifconfig (#59457)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 65e97e55..3e4f8c8f 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -79,7 +79,7 @@ cd /etc/sysconfig/network-scripts
#
# sorry this is all one line -- it didn't work on multiple lines for me
-eval `LC_ALL= LANG= ifconfig | sed -e ' /^[^[:space:]]*:[0-9]*/ { s|^\([^:]*\):\([0-9]*\).*$|X=x; TMP="\2"; [ "$device" != "\1" ] \|\| |g; b; }; /^[^[:space:]]/ { s|.*|X=x; [ 0 = 0 ] \|\| |g; b; }; /inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* *Bcast:[0-9.]* *Mask:[0-9.]*/ { s|^.*inet addr:\(\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\) *Bcast:\([0-9.]*\) *Mask:\([0-9.]*\).*$|eval " rdev_${TMP}_addr=\1; rdev_${TMP}_mb=\7_\6; rdevip_\2_\3_\4_\5=${TMP}; rdev_LIST=\\\\"\\\\$rdev_LIST \\\\${TMP}\\\\"; " \|\| |g; b; }; s|^.*$||g; ' ` X=x;
+eval `LC_ALL= LANG= /sbin/ifconfig | sed -e ' /^[^[:space:]]*:[0-9]*/ { s|^\([^:]*\):\([0-9]*\).*$|X=x; TMP="\2"; [ "$device" != "\1" ] \|\| |g; b; }; /^[^[:space:]]/ { s|.*|X=x; [ 0 = 0 ] \|\| |g; b; }; /inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]* *Bcast:[0-9.]* *Mask:[0-9.]*/ { s|^.*inet addr:\(\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\) *Bcast:\([0-9.]*\) *Mask:\([0-9.]*\).*$|eval " rdev_${TMP}_addr=\1; rdev_${TMP}_mb=\7_\6; rdevip_\2_\3_\4_\5=${TMP}; rdev_LIST=\\\\"\\\\$rdev_LIST \\\\${TMP}\\\\"; " \|\| |g; b; }; s|^.*$||g; ' ` X=x;
if [ -z "$rdev_LIST" ]; then
no_devices_are_up=yes
@@ -252,7 +252,7 @@ function new_interface ()
##echo "setting up device $DEVICE"
- ifconfig ${DEVICE} ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
+ /sbin/ifconfig ${DEVICE} ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
if [ "$NO_ALIASROUTING" != yes ]; then