]> git.pld-linux.org Git - projects/rc-scripts.git/blame - lib/ifup-plip
- provide stdin for the daemons that just must have it,
[projects/rc-scripts.git] / lib / ifup-plip
CommitLineData
12de71be 1#!/bin/sh
b0443108 2#
ec8b15cb 3# $Id$
b0443108 4#
7742e157
AF
5PATH=/sbin:/usr/sbin:/bin:/usr/bin
6
4b661287
JR
7. /etc/sysconfig/network
8. /etc/rc.d/init.d/functions
f67ce454 9. /lib/rc-scripts/functions.network
12de71be 10
de1fc6ce 11CONFIG=$1
7742e157
AF
12source_config
13
dd4a755f 14if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
5e6dfc29 15 exit
7742e157
AF
16fi
17
de1fc6ce
JR
18# set all major variables
19setup_ip_param
20
21if is_yes "$IPV4_NETWORKING"; then
5e6dfc29
JR
22 if [ -n "$IP4ADDR" ]; then
23 ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
24 fi
de1fc6ce 25fi
7742e157 26
de1fc6ce 27if is_yes "$IPV6_NETWORKING"; then
5e6dfc29
JR
28 if [ -n "$IP6ADDR" ]; then
29 ip -6 addr add ${IP6ADDR} dev ${DEVICE}
30 fi
7742e157
AF
31fi
32
de1fc6ce
JR
33ip link set dev ${DEVICE} up
34
35. /etc/sysconfig/network
36
37# IPv4/6 gateways and default routes
38setup_ip_gw_ro
39
f67ce454 40/lib/rc-scripts/ifup-post $1
This page took 0.092063 seconds and 4 git commands to generate.