echo -n "${DNS1}" > /var/ipfire/red/dns1
echo -n "${DNS2}" > /var/ipfire/red/dns2
+ run_subdir ${rc_base}/init.d/networking/red.up/
+
elif [ "${TYPE}" == "DHCP" ]; then
boot_mesg -n "Starting dhcpcd on the ${DEVICE} interface..."
echo -n "${DEVICE}" > /var/ipfire/red/iface
/usr/sbin/pppoe-start
evaluate_retval
fi
-
- for i in $( ls -v ${rc_base}/init.d/networking/red.up/* 2> /dev/null); do
- check_script_status
- OUT=$(echo $(basename ${i}) | awk -F- '{ print $2 }')
- case "$OUT" in
- S) ${i} start ;;
- K) ${i} stop ;;
- RS) ${i} restart ;;
- RL) ${i} reload ;;
- *) ${i} ;;
- esac
- done
;;
stop)
ip addr del ${args} dev ${DEVICE}
evaluate_retval
+ run_subdir ${rc_base}/init.d/networking/red.down/
+
elif [ "$TYPE" == "DHCP" ]; then
boot_mesg -n "Stopping dhcpcd on the ${DEVICE} interface..."
if [ -e $LEASEINFO ]; then
fi
rm -f /var/ipfire/red/{active,device,dial-on-demand,dns1,dns2,local-ipaddress,remote-ipaddress,resolv.conf}
- for i in $( ls -v ${rc_base}/init.d/networking/red.down/* 2> /dev/null); do
- check_script_status
- OUT=$(echo $(basename ${i}) | awk -F- '{ print $2 }')
- case "$OUT" in
- S) ${i} start ;;
- K) ${i} stop ;;
- RS) ${i} restart ;;
- RL) ${i} reload ;;
- *) ${i} ;;
- esac
- done
;;
esac