diff options
author | Bill Nottingham <notting@redhat.com> | 1999-03-19 23:01:59 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-03-19 23:01:59 +0000 |
commit | c1217e6aab0e4feaf8a54de8aeeb53730bf40c96 (patch) | |
tree | 628e4527c84c33fee8a0b7e9dffa0ea6038c6316 /sysconfig/network-scripts/ifup | |
parent | 3a0395a18cedf0f0d4e15eabdbc920bf92c626b3 (diff) | |
download | initscripts-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/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 7 |
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 |