#!/bin/bash
#switch_net.sh
print_help () {
echo To use print
echo
echo switch_net.sh location
echo
echo Where location is /etc/rc.d/rc.inet1.conf.location
}
if [ -z $1 ];
then
print_help
exit
fi
if [ ! -f /etc/rc.d/rc.inet1.conf.$1 ]; then
echo File /etc/rc.d/rc.inet1.conf.$1 not exists, please point to existing one
exit
fi
ln -sfv /etc/rc.d/rc.inet1.conf.$1 /etc/rc.d/rc.inet1.conf
/etc/rc.d/rc.inet1 restart