diff options
author | Preston Brown <pbrown@redhat.com> | 2001-09-25 18:48:06 +0000 |
---|---|---|
committer | Preston Brown <pbrown@redhat.com> | 2001-09-25 18:48:06 +0000 |
commit | 8bcc6dbeb644ff182706ec341bda4771e7166672 (patch) | |
tree | f586ed3c6f25e303bf473f3424a1afb65b6b3edc /sysconfig/network-scripts/ifup | |
parent | 779670cae04691237a793e7a19f19fd3c2b797d3 (diff) | |
download | initscripts-8bcc6dbeb644ff182706ec341bda4771e7166672.tar initscripts-8bcc6dbeb644ff182706ec341bda4771e7166672.tar.gz initscripts-8bcc6dbeb644ff182706ec341bda4771e7166672.tar.bz2 initscripts-8bcc6dbeb644ff182706ec341bda4771e7166672.tar.xz initscripts-8bcc6dbeb644ff182706ec341bda4771e7166672.zip |
need_hostname now returns true or false, doesn't set NEEDHOSTNAME. Some reformatting fixes.
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index e4fcf05f..db8d3ca5 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -19,8 +19,6 @@ cd /etc/sysconfig/network-scripts [ -f ../network ] && . ../network [ -f ../networking/network ] && . ../networking/network -need_hostname - CONFIG=${1} [ -z "${CONFIG}" ] && { @@ -151,7 +149,7 @@ if [ -n "${DYNCONFIG}" ]; then PUMPARGS="-h ${DHCP_HOSTNAME}" DHCPCDARGS="-h ${DHCP_HOSTNAME}" fi - if [ -n "${NEEDHOSTNAME}" ]; then + if need_hostname; then PUMPARGS="${PUMPARGS} --lookup-hostname" DHCPCDARGS="${DHCPCDARGS} -H" fi @@ -242,7 +240,6 @@ else # set up default gateway if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null`" = "NETWORK=${NETWORK}" ]; then ip route add default via ${GATEWAY} - DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then ip route add default dev ${DEVICE} fi |