# Start all network interfaces
for file in ${NETWORK_DEVICES}/*
do
- interface=$(basename ${file})
+ interface=${file##*/}
- IN_BOOT=1 ${NETWORK_DEVICES}/brup ${interface}
+ IN_BOOT=1 ${NETWORK_SCRIPTS}/brup ${interface}
done
;;
# Stop all network interfaces
for file in ${FILES}
do
- interface=$(basename ${file})
+ interface=${file##*/}
- IN_BOOT=1 ${NETWORK_DEVICES}/brdown ${interface}
+ IN_BOOT=1 ${NETWORK_SCRIPTS}/brdown ${interface}
done
;;
(
. ${file}
- if [ -n "${SERVICE}" -a -x "${NETWORK_DEVICES}/services/${SERVICE}" ]; then
- IFCONFIG=${file} ${NETWORK_DEVICES}/services/${SERVICE} ${1} down
+ if [ -n "${SERVICE}" -a -x "${NETWORK_SCRIPTS}/services/${SERVICE}" ]; then
+ IFCONFIG=${file} ${NETWORK_SCRIPTS}/services/${SERVICE} ${1} down
else
echo -e "${FAILURE}Unable to process ${file}. Either"
echo -e "${FAILURE}the SERVICE variable was not set,"
(
. ${file}
- if [ -n "${SERVICE}" -a -x "${NETWORK_DEVICES}/services/${SERVICE}" ]; then
- IFCONFIG=${file} ${NETWORK_DEVICES}/services/${SERVICE} ${1} up
+ if [ -n "${SERVICE}" -a -x "${NETWORK_SCRIPTS}/services/${SERVICE}" ]; then
+ IFCONFIG=${file} ${NETWORK_SCRIPTS}/services/${SERVICE} ${1} up
else
echo -e "${FAILURE}Unable to process ${file}. Either"
echo -e "${FAILURE}the SERVICE variable was not set,"
RC_FUNCTIONS="${RC_BASE}/init.d/ipfire-functions"
# Location of network device scripts and config files
+NETWORK_SCRIPTS="/etc/init.d/networking"
NETWORK_DEVICES="/etc/sysconfig/network-devices"
# Directory to store boot process accounting information