#!/bin/sh
#
#	$Id: ifup-iucv 5418 2005-01-02 22:53:02Z radek $
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin

cd /etc/sysconfig/network-scripts
. /etc/sysconfig/network
. /etc/rc.d/init.d/functions
. /etc/sysconfig/network-scripts/functions.network

CONFIG=$1
source_config

if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
    exit
fi

# set all major variables
setup_ip_param

if is_yes "$IPV4_NETWORKING"; then
    if [ -n "$IP4ADDR" ]; then
	ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
    fi
fi

if is_yes "$IPV6_NETWORKING"; then
    if [ -n "$IP6ADDR" ]; then
	ip -6 addr add ${IP6ADDR} dev ${DEVICE}
    fi
fi

ip link set dev ${DEVICE} up

. /etc/sysconfig/network

# IPv4/6 gateways and default routes
setup_ip_gw_ro

/etc/sysconfig/network-scripts/ifup-post $1

# This must be last line !
# vi:syntax=sh:tw=78:ts=8:sw=4
