]>
Commit | Line | Data |
---|---|---|
a6c22d3d AM |
1 | #!/bin/sh |
2 | # | |
3 | # The plusb network driver is a USB host-host cable based on the Prolific | |
5e6dfc29 | 4 | # chip. It works a lot like the plip driver. |
a6c22d3d AM |
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 | # | |
a6c22d3d AM |
11 | # |
12 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
13 | ||
f67ce454 | 14 | cd /lib/rc-scripts |
a6c22d3d AM |
15 | . /etc/sysconfig/network |
16 | . /etc/rc.d/init.d/functions | |
f67ce454 | 17 | . /lib/rc-scripts/functions.network |
a6c22d3d AM |
18 | |
19 | CONFIG=$1 | |
20 | source_config | |
21 | ||
22 | if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then | |
5e6dfc29 | 23 | exit |
a6c22d3d AM |
24 | fi |
25 | ||
26 | # set all major variables | |
27 | setup_ip_param | |
28 | ||
29 | if is_yes "$IPV4_NETWORKING"; then | |
5e6dfc29 JR |
30 | if [ -n "$IP4ADDR" ]; then |
31 | ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE} | |
32 | fi | |
a6c22d3d AM |
33 | fi |
34 | ||
35 | if is_yes "$IPV6_NETWORKING"; then | |
5e6dfc29 JR |
36 | if [ -n "$IP6ADDR" ]; then |
37 | ip -6 addr add ${IP6ADDR} dev ${DEVICE} | |
38 | fi | |
a6c22d3d AM |
39 | fi |
40 | ||
41 | ip link set dev ${DEVICE} up | |
42 | ||
43 | . /etc/sysconfig/network | |
44 | ||
45 | # IPv4/6 gateways and default routes | |
46 | setup_ip_gw_ro | |
47 | ||
f67ce454 | 48 | /lib/rc-scripts/ifup-post $1 |