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