diff options
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ctc | 10 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-iucv | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/sysconfig/network-scripts/ifup-ctc b/sysconfig/network-scripts/ifup-ctc index b9b38196..beead387 100755 --- a/sysconfig/network-scripts/ifup-ctc +++ b/sysconfig/network-scripts/ifup-ctc @@ -25,12 +25,14 @@ fi configure_ccwgroup_device -ifconfig ${DEVICE} ${IPADDR} ${opts} pointopoint ${REMIP} netmask ${NETMASK} +. /etc/sysconfig/network + +ifconfig ${DEVICE} ${IPADDR} ${opts} pointopoint ${GATEWAY} netmask ${NETMASK} # Wait for the device to come up - the chandev'ified ctc driver can take # quite a while... timeout=0 -while ! ping -w 30 -c 1 ${REMIP} &>/dev/null; do +while ! ping -w 30 -c 1 ${GATEWAY} &>/dev/null; do timeout=$(($timeout + 1)) if [ $timeout = 20 ]; then echo $"ERROR: ${DEVICE} did not come up!" @@ -39,11 +41,9 @@ while ! ping -w 30 -c 1 ${REMIP} &>/dev/null; do done if [ "${NETWORK}" != "" ] ; then - route add -host ${REMIP} metric 1 ${DEVICE} + route add -host ${GATEWAY} metric 1 ${DEVICE} fi -. /etc/sysconfig/network - if [ "${GATEWAY}" != "" ]; then if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway diff --git a/sysconfig/network-scripts/ifup-iucv b/sysconfig/network-scripts/ifup-iucv index d169de48..c4ce80b9 100755 --- a/sysconfig/network-scripts/ifup-iucv +++ b/sysconfig/network-scripts/ifup-iucv @@ -25,12 +25,13 @@ fi echo "$PEERID" > /sys/bus/iucv/drivers/netiucv/connection 2>/dev/null -ifconfig ${DEVICE} ${IPADDR} ${opts} pointopoint ${REMIP} netmask ${NETMASK} +. /etc/sysconfig/network + +ifconfig ${DEVICE} ${IPADDR} ${opts} pointopoint ${GATEWAY} netmask ${NETMASK} if [ "${NETWORK}" != "" ] ; then - route add -host ${REMIP} metric 1 ${DEVICE} + route add -host ${GATEWAY} metric 1 ${DEVICE} fi -. /etc/sysconfig/network if [ "${GATEWAY}" != "" ]; then if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then |