| 1 |
#!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 |
PATH=/sbin:/usr/sbin:/bin:/usr/binscip-shell filesystem . . `/sbin:/usr/sbin:/bin:/usr/bin`. |
| 3 |
|
| 4 |
cd /etc/sysconfig/network-scriptsscip-shell filesystem . . `/etc/sysconfig/network-scripts`. |
| 5 |
. network-functionsscip-shell source . . network-functions. |
| 6 |
|
| 7 |
CONFIG=$1 |
| 8 |
source_config |
| 9 |
|
| 10 |
if [scip-shell system . . `[`. "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ] |
| 11 |
then |
| 12 |
exit |
| 13 |
fi |
| 14 |
|
| 15 |
if [scip-shell system . . `[`. -z "${MODE}" ]; then |
| 16 |
echoscip-shell system . . echo. "No mode specified!" |
| 17 |
exit |
| 18 |
fi |
| 19 |
|
| •20 |
dahdi-sethdlc ${DEVICE} mode ${MODE} |
| 21 |
ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} |
| 22 |
route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE} |
| 23 |
|
| 24 |
# this is broken! it's only here to keep compatibility with old RH sytstems |
| 25 |
if [scip-shell system . . `[`. "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ] |
| 26 |
then |
| 27 |
route add default gw ${GATEWAY} metric 1 ${DEVICE} |
| 28 |
fi |
| 29 |
|
| 30 |
. /etc/sysconfig/networkscip-shell source . . `/etc/sysconfig/network`. |
| 31 |
|
| 32 |
if [scip-shell system . . `[`. "${GATEWAY}" != "" ]; then |
| 33 |
if [scip-shell system . . `[`. "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then |
| 34 |
# set up default gateway |
| 35 |
route add default gw ${GATEWAY} |
| 36 |
fi |
| 37 |
fi |
| 38 |
|
| 39 |
/etc/sysconfig/network-scripts/ifup-postscip-shell filesystem . . `/etc/sysconfig/network-scripts/ifup-post`. $1 |