#!/bin/sh
# Sreen Tallam 10/31/08

# In 2.6.20, the eth0 is brought down by the kernel, since we don't enable DHCP
# or bootp during kernel bootup. Hence we need to manually bring the interface
# up. Also, this needs to be run only once during bootup of rlm and also before
# the initscripts run the firewall script 

# Run in all cases except in the case below described
ifup eth0
if [ $? ]
then
	# We do this only in the case, when v4 is disabled
	# and v6 is enabled with Global Address is set to disable. After
	# that if RLM reboots, ifup will fail because there is no
	# enteries within the /etc/network/interfaces file. So in this case
	# there will be no link local, RA, Global Address and one cannot
	# connect to the RLM. So to provide RLM with link local and
	# RA we do the next line of code to bring the interface up bypassing
	# the contents of /etc/network/interfaces file. The user now can
	# connect to RLM using RA. Which is what the user would like to see.
	ifconfig eth0 up
fi

echo "."

exit 0
