123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #!/bin/sh
- ########################################################################
- # Begin $NETWORK_DEVICES/ifup
- #
- # Description : Interface Up
- #
- # Authors : Nathan Coulson - nathan@linuxfromscratch.org
- # Kevin P. Fleming - kpfleming@linuxfromscratch.org
- #
- # Version : 00.00
- #
- # Notes : the IFCONFIG variable is passed to the scripts found
- # in the services directory, to indicate what file the
- # service should source to get environmental variables.
- #
- ########################################################################
- . /lib/lsb/init-functions
- # Collect a list of configuration files for our interface
- if [ -n "${2}" ]; then
- for file in ${@#$1} # All parameters except $1
- do
- FILES="${FILES} ${NETWORK_DEVICES}/ifconfig.${1}/${file}"
- done
- elif [ -d "${NETWORK_DEVICES}/ifconfig.${1}" ]; then
- FILES=`echo ${NETWORK_DEVICES}/ifconfig.${1}
|