aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-19 23:01:59 +0000
committerBill Nottingham <notting@redhat.com>1999-03-19 23:01:59 +0000
commitc1217e6aab0e4feaf8a54de8aeeb53730bf40c96 (patch)
tree628e4527c84c33fee8a0b7e9dffa0ea6038c6316 /sysconfig/network-scripts
parent3a0395a18cedf0f0d4e15eabdbc920bf92c626b3 (diff)
downloadinitscripts-c1217e6aab0e4feaf8a54de8aeeb53730bf40c96.tar
initscripts-c1217e6aab0e4feaf8a54de8aeeb53730bf40c96.tar.gz
initscripts-c1217e6aab0e4feaf8a54de8aeeb53730bf40c96.tar.bz2
initscripts-c1217e6aab0e4feaf8a54de8aeeb53730bf40c96.tar.xz
initscripts-c1217e6aab0e4feaf8a54de8aeeb53730bf40c96.zip
set macaddr before bootp
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 7b86ca68..71b47881 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -77,6 +77,10 @@ if [ "$SLAVE" = yes -a "$ISALIAS" = no -a "$MASTER" != "" -a \
exit 0
fi
+if [ -n "$MACADDR" ]; then
+ ifconfig ${DEVICE} hw ether ${MACADDR}
+fi
+
if [ -n "$PUMP" ]; then
echo -n "Determing IP information for $DEVICE..."
if /sbin/pump -i $DEVICE ; then
@@ -98,8 +102,7 @@ else
eval `/bin/ipcalc --network ${IPADDR} ${NETMASK}`
fi
- ifconfig ${DEVICE} ${MACADDR:+hw ether $MACADDR} ${IPADDR} \
- netmask ${NETMASK} broadcast ${BROADCAST}
+ ifconfig ${DEVICE} ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
# don't re-add subnet route on 2.2 kernels, but add a route
# to a non-local subnet.
# stupid hack, but it should work