]>
Commit | Line | Data |
---|---|---|
a6c22d3d AM |
1 | #!/bin/sh |
2 | # | |
3 | # The plusb network driver is a USB host-host cable based on the Prolific | |
4 | # chip. It works a lot like the plip driver. | |
5 | # | |
6 | # To get the plusb module to load automatically at boot, you will need to | |
7 | # add the following lines to /etc/conf.modules: | |
8 | # | |
9 | # alias plusb0 plusb | |
10 | # | |
ec8b15cb | 11 | # $Id$ |
a6c22d3d AM |
12 | # |
13 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
14 | ||
15 | cd /etc/sysconfig/network-scripts | |
16 | . /etc/sysconfig/network | |
17 | . /etc/rc.d/init.d/functions | |
18 | . /etc/sysconfig/network-scripts/functions.network | |
19 | ||
20 | CONFIG=$1 | |
21 | source_config | |
22 | ||
23 | if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then | |
74a7f2e4 | 24 | exit |
a6c22d3d AM |
25 | fi |
26 | ||
27 | # set all major variables | |
28 | setup_ip_param | |
29 | ||
30 | if is_yes "$IPV4_NETWORKING"; then | |
74a7f2e4 | 31 | if [ -n "$IP4ADDR" ]; then |
32 | ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE} | |
33 | fi | |
a6c22d3d AM |
34 | fi |
35 | ||
36 | if is_yes "$IPV6_NETWORKING"; then | |
74a7f2e4 | 37 | if [ -n "$IP6ADDR" ]; then |
38 | ip -6 addr add ${IP6ADDR} dev ${DEVICE} | |
39 | fi | |
a6c22d3d AM |
40 | fi |
41 | ||
42 | ip link set dev ${DEVICE} up | |
43 | ||
44 | . /etc/sysconfig/network | |
45 | ||
46 | # IPv4/6 gateways and default routes | |
47 | setup_ip_gw_ro | |
48 | ||
49 | /etc/sysconfig/network-scripts/ifup-post $1 | |
50 | ||
51 | # This must be last line ! | |
31abb21f | 52 | # vi:syntax=sh:ts=8:sw=4 |