aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ctc
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.com>2004-09-10 10:37:38 +0000
committerKarsten Hopp <karsten@redhat.com>2004-09-10 10:37:38 +0000
commit1129c1b2ff3ff4a2d9c5ae7cc390e401f42f51ba (patch)
tree185c84a50f882ea218127193299a284ba39ef18f /sysconfig/network-scripts/ifup-ctc
parent711a27c0713c36f58ae4259366bfe98bb62e9d7b (diff)
downloadinitscripts-1129c1b2ff3ff4a2d9c5ae7cc390e401f42f51ba.tar
initscripts-1129c1b2ff3ff4a2d9c5ae7cc390e401f42f51ba.tar.gz
initscripts-1129c1b2ff3ff4a2d9c5ae7cc390e401f42f51ba.tar.bz2
initscripts-1129c1b2ff3ff4a2d9c5ae7cc390e401f42f51ba.tar.xz
initscripts-1129c1b2ff3ff4a2d9c5ae7cc390e401f42f51ba.zip
- CTC uses GATEWAY as pointtopoint partner. This works as long as CTCr7-79
is the primary network interface, but fails otherwise. Load /etc/sysconfig/network before ifcfg-ctcX so that GATEWAY can be set in ifcfg-ctcX and doesn't get overwritten.
Diffstat (limited to 'sysconfig/network-scripts/ifup-ctc')
-rwxr-xr-xsysconfig/network-scripts/ifup-ctc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-ctc b/sysconfig/network-scripts/ifup-ctc
index beead387..193c11b5 100755
--- a/sysconfig/network-scripts/ifup-ctc
+++ b/sysconfig/network-scripts/ifup-ctc
@@ -13,6 +13,8 @@
cd /etc/sysconfig/network-scripts
. network-functions
+. /etc/sysconfig/network
+
CONFIG=$1
[ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG
source_config
@@ -25,8 +27,6 @@ fi
configure_ccwgroup_device
-. /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