]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/network-scripts/ifup-plip
Requires: procps
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-plip
CommitLineData
12de71be 1#!/bin/sh
7742e157
AF
2PATH=/sbin:/usr/sbin:/bin:/usr/bin
3
12de71be 4cd /etc/sysconfig/network-scripts
7e04fe0e 5. /etc/rc.d/init.d/functions.network
12de71be 6
7CONFIG=$1
7742e157
AF
8source_config
9
10if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
11then
12 exit
13fi
14
15ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP}
80fd83b6
AM
16#route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
17ip route add ${NETWORK}/${PREFIX} dev ${DEVICE}
7742e157
AF
18
19# this is broken! it's only here to keep compatibility with old RH sytstems
20if [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ]
21then
22 route add default gw ${GATEWAY} metric 1 ${DEVICE}
23fi
24
25. /etc/sysconfig/network
26
27if [ "${GATEWAY}" != "" ]; then
28 if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
29 # set up default gateway
62c4265e 30 ip route add default via ${GATEWAY}
7742e157
AF
31 fi
32fi
33
34/etc/sysconfig/network-scripts/ifup-post $1
This page took 0.033291 seconds and 4 git commands to generate.