]>
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 | # | |
ec8b15cb | 11 | # $Id$ |
a6c22d3d AM |
12 | # |
13 | PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
14 | ||
f67ce454 | 15 | cd /lib/rc-scripts |
a6c22d3d AM |
16 | . /etc/sysconfig/network |
17 | . /etc/rc.d/init.d/functions | |
f67ce454 | 18 | . /lib/rc-scripts/functions.network |
a6c22d3d AM |
19 | |
20 | CONFIG=$1 | |
21 | source_config | |
22 | ||
23 | if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then | |
5e6dfc29 | 24 | exit |
a6c22d3d AM |
25 | fi |
26 | ||
27 | # set all major variables | |
28 | setup_ip_param | |
29 | ||
30 | if is_yes "$IPV4_NETWORKING"; then | |
5e6dfc29 JR |
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 | |
5e6dfc29 JR |
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 | ||
f67ce454 | 49 | /lib/rc-scripts/ifup-post $1 |