]> git.pld-linux.org Git - projects/rc-scripts.git/blob - lib/ifup-iucv
347b19a3034cb7b68479bf99fdecd78663c772eb
[projects/rc-scripts.git] / lib / ifup-iucv
1 #!/bin/sh
2 #
3 #       $Id$
4 #
5 PATH=/sbin:/usr/sbin:/bin:/usr/bin
6
7 cd /lib/rc-scripts
8 . /etc/sysconfig/network
9 . /etc/rc.d/init.d/functions
10 . /lib/rc-scripts/functions.network
11
12 CONFIG=$1
13 source_config
14
15 if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
16         exit
17 fi
18
19 # set all major variables
20 setup_ip_param
21
22 if is_yes "$IPV4_NETWORKING"; then
23         if [ -n "$IP4ADDR" ]; then
24                 ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
25         fi
26 fi
27
28 if is_yes "$IPV6_NETWORKING"; then
29         if [ -n "$IP6ADDR" ]; then
30                 ip -6 addr add ${IP6ADDR} dev ${DEVICE}
31         fi
32 fi
33
34 ip link set dev ${DEVICE} up
35
36 . /etc/sysconfig/network
37
38 # IPv4/6 gateways and default routes
39 setup_ip_gw_ro
40
41 /lib/rc-scripts/ifup-post $1
This page took 0.139818 seconds and 2 git commands to generate.