]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # | |
3 | # $Id$ | |
4 | # | |
5 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
6 | ||
7 | . /etc/sysconfig/network | |
8 | . /etc/rc.d/init.d/functions | |
9 | . /lib/rc-scripts/functions.network | |
10 | ||
11 | CONFIG=$1 | |
12 | source_config | |
13 | ||
14 | if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then | |
15 | exit | |
16 | fi | |
17 | ||
18 | # set all major variables | |
19 | setup_ip_param | |
20 | ||
21 | if is_yes "$IPV4_NETWORKING"; then | |
22 | if [ -n "$IP4ADDR" ]; then | |
23 | ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE} | |
24 | fi | |
25 | fi | |
26 | ||
27 | if is_yes "$IPV6_NETWORKING"; then | |
28 | if [ -n "$IP6ADDR" ]; then | |
29 | ip -6 addr add ${IP6ADDR} dev ${DEVICE} | |
30 | fi | |
31 | fi | |
32 | ||
33 | ip link set dev ${DEVICE} up | |
34 | ||
35 | . /etc/sysconfig/network | |
36 | ||
37 | # IPv4/6 gateways and default routes | |
38 | setup_ip_gw_ro | |
39 | ||
40 | /lib/rc-scripts/ifup-post $1 |