From 8bcc6dbeb644ff182706ec341bda4771e7166672 Mon Sep 17 00:00:00 2001 From: Preston Brown Date: Tue, 25 Sep 2001 18:48:06 +0000 Subject: need_hostname now returns true or false, doesn't set NEEDHOSTNAME. Some reformatting fixes. --- sysconfig/network-scripts/ifup | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sysconfig/network-scripts/ifup') 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 -- cgit v1.2.1