#!/bin/sh
########################################################################
# Begin $network_devices/services/custom
#
# Description : LFS compatible network service for custom operations
#
# Author      : Arthur D. - spinal.by@mail.ru
#
# Version     : 00.00
#
# Notes       :
#
########################################################################

. /etc/sysconfig/rc 
. ${rc_functions} 
IFACE=${1}
. ${IFCONFIG}

case "${2}" in
	up)
		boot_mesg "${UP_MESG}..."
		grep '^#[[:space:]]*up[[:space:]]\+' ${IFCONFIG} | sed 's,^#[[:space:]]*up[[:space:]]\+,,' | /bin/sh
		evaluate_retval
	;;
	
	down)
		boot_mesg "${DOWN_MESG}..."
		grep '^#[[:space:]]*down[[:space:]]\+' ${IFCONFIG} | sed 's,^#[[:space:]]*down[[:space:]]\+,,' | /bin/sh
		evaluate_retval
	;;
	
	*)
		echo "Usage: ${0} [interface] {up|down}"
		exit 1
	;;
esac

# End $network_devices/services/custom
