diff options
author | Bernhard Rosenkraenzer <bero@redhat.com> | 2001-08-15 13:55:29 +0000 |
---|---|---|
committer | Bernhard Rosenkraenzer <bero@redhat.com> | 2001-08-15 13:55:29 +0000 |
commit | 34b597c1e15e048e7335c862278d61ac3dc34891 (patch) | |
tree | 2b246b8a9ff3511b4ff0885a7de4af60fb9f0eb8 /sysconfig/network-scripts/ifup-ctc | |
parent | 243c161b2abefe887f2ff9b044d997322d757f98 (diff) | |
download | initscripts-34b597c1e15e048e7335c862278d61ac3dc34891.tar initscripts-34b597c1e15e048e7335c862278d61ac3dc34891.tar.gz initscripts-34b597c1e15e048e7335c862278d61ac3dc34891.tar.bz2 initscripts-34b597c1e15e048e7335c862278d61ac3dc34891.tar.xz initscripts-34b597c1e15e048e7335c862278d61ac3dc34891.zip |
S390 fixes
Diffstat (limited to 'sysconfig/network-scripts/ifup-ctc')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ctc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-ctc b/sysconfig/network-scripts/ifup-ctc index 80c84391..56cb490e 100755 --- a/sysconfig/network-scripts/ifup-ctc +++ b/sysconfig/network-scripts/ifup-ctc @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # /etc/sysconfig/network-scripts/ifup-ctc # @@ -25,6 +25,18 @@ fi [ -n "${MTU}" ] && opts="${opts} mtu ${MTU}" ifconfig ${DEVICE} ${IPADDR} ${opts} pointopoint ${REMIP} + +# Wait for the device to come up - the chandev'ified ctc driver can take +# quite a while... +timeout=0 +while ! ping -w 30 -c ${REMIP} &>/dev/null; do + timeout=$(($timeout + 1)) + if [ $timeout = 20 ]; then + echo $"ERROR: ${DEVICE} did not come up!" + break + fi +done + if [ "${NETWORK}" != "" ] ; then route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE} fi |