]> git.pld-linux.org Git - projects/rc-scripts.git/blob - lib/ifup-plusb
drop raidutils (raidstart, /etc/raidtab) support. our geninitrd doesn't support it...
[projects/rc-scripts.git] / lib / ifup-plusb
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 #
11 # $Id$
12 #
13 PATH=/sbin:/usr/sbin:/bin:/usr/bin
14
15 cd /lib/rc-scripts
16 . /etc/sysconfig/network
17 . /etc/rc.d/init.d/functions
18 . /lib/rc-scripts/functions.network
19
20 CONFIG=$1
21 source_config
22
23 if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
24         exit
25 fi
26
27 # set all major variables
28 setup_ip_param
29
30 if is_yes "$IPV4_NETWORKING"; then
31         if [ -n "$IP4ADDR" ]; then
32                 ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
33         fi
34 fi
35
36 if is_yes "$IPV6_NETWORKING"; then
37         if [ -n "$IP6ADDR" ]; then
38                 ip -6 addr add ${IP6ADDR} dev ${DEVICE}
39         fi
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 /lib/rc-scripts/ifup-post $1
This page took 0.091855 seconds and 3 git commands to generate.