]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/network-scripts/ifup-plip
- uncommented "to enter interactive startup" transl.
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-plip
CommitLineData
12de71be 1#!/bin/sh
b0443108 2#
dd4a755f 3# $Id: ifup-plip,v 1.10 2000/06/12 08:38:15 waszi Exp $
b0443108 4#
7742e157
AF
5PATH=/sbin:/usr/sbin:/bin:/usr/bin
6
12de71be 7cd /etc/sysconfig/network-scripts
8b3e2b71 8. /etc/sysconfig/network-scripts/.functions
12de71be 9
10CONFIG=$1
7742e157
AF
11source_config
12
dd4a755f 13if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
7742e157
AF
14 exit
15fi
16
38198f50
AM
17ip -family inet addr add ${IPADDR}/32 peer ${REMIP} dev ${DEVICE}
18ip -family inet route add ${NETWORK}/${PREFIX} dev ${DEVICE}
7742e157
AF
19
20. /etc/sysconfig/network
21
22if [ "${GATEWAY}" != "" ]; then
23 if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
24 # set up default gateway
38198f50 25 ip -family inet route add default via ${GATEWAY}
7742e157
AF
26 fi
27fi
28
29/etc/sysconfig/network-scripts/ifup-post $1
This page took 0.030744 seconds and 4 git commands to generate.