Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#!/bin/sh |
| 2 |
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
| 3 |
|
| 4 |
cd /etc/sysconfig/network-scripts |
| 5 |
. network-functions |
| 6 |
|
| 7 |
CONFIG=$1 |
| 8 |
source_config |
| 9 |
|
| 10 |
if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ] |
| 11 |
then |
| 12 |
exit |
| 13 |
fi |
| 14 |
|
| 15 |
if [ -z "${MODE}" ]; then |
| 16 |
echo "No mode specified!" |
| 17 |
exit |
| 18 |
fi |
| 19 |
|
| 20 |
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 [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ] |
| 26 |
then |
| 27 |
route add default gw ${GATEWAY} metric 1 ${DEVICE} |
| 28 |
fi |
| 29 |
|
| 30 |
. /etc/sysconfig/network |
| 31 |
|
| 32 |
if [ "${GATEWAY}" != "" ]; then |
| 33 |
if [ "${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-post $1 |