]> TLD Linux GIT Repositories - rc-scripts.git/blob - lib/ifup-plusb
- disable lock checks (happens on LUKS2 and fails during system boot)
[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 #
12 PATH=/sbin:/usr/sbin:/bin:/usr/bin
13
14 cd /lib/rc-scripts
15 . /etc/sysconfig/network
16 . /etc/rc.d/init.d/functions
17 . /lib/rc-scripts/functions.network
18
19 CONFIG=$1
20 source_config
21
22 if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
23         exit
24 fi
25
26 # set all major variables
27 setup_ip_param
28
29 if is_yes "$IPV4_NETWORKING"; then
30         if [ -n "$IP4ADDR" ]; then
31                 ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
32         fi
33 fi
34
35 if is_yes "$IPV6_NETWORKING"; then
36         if [ -n "$IP6ADDR" ]; then
37                 ip -6 addr add ${IP6ADDR} dev ${DEVICE}
38         fi
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
48 /lib/rc-scripts/ifup-post $1