source: projects/initscripts/tags/initscripts-8.91.0/sysconfig/network-scripts/ifup-plip @ 2576

Revision 2576, 756 bytes checked in by daisuke, 13 years ago (diff)

tagging as initscripts-8.91.0

Line 
1#!/bin/sh
2
3cd /etc/sysconfig/network-scripts
4. /etc/sysconfig/network-scripts/network-functions
5
6CONFIG=$1
7source_config
8
9if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
10then
11        exit
12fi
13
14ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP}
15route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
16
17# this is broken! it's only here to keep compatibility with old RH systems
18if [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ]
19then
20        route add default gw ${GATEWAY} metric ${METRIC:-1} ${DEVICE}
21fi
22
23. /etc/sysconfig/network
24
25if [ "${GATEWAY}" != "" ]; then
26        if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
27                # set up default gateway
28                route add default gw ${GATEWAY} ${METRIC:+metric $METRIC}
29        fi
30fi
31
32/etc/sysconfig/network-scripts/ifup-post $1
Note: See TracBrowser for help on using the repository browser.