echo -n "${DNS1}" > /var/ipfire/red/dns1
echo -n "${DNS2}" > /var/ipfire/red/dns2
+ boot_mesg "Setting up default gateway ${GATEWAY}..."
+ ip route add default via ${GATEWAY} dev ${DEVICE}
+ evaluate_retval
+
run_subdir ${rc_base}/init.d/networking/red.up/
elif [ "${TYPE}" == "DHCP" ]; then
AUTH="-chap"
elif [ "${AUTH}" == "chap" ]; then
AUTH="-pap"
+ else
+ AUTH=""
fi
### Dial On Demand
elif [ "$TYPE" == "PPPOE" ]; then
boot_mesg "Bringing down the PPPoE interface on ${DEVICE}..."
rm -f /var/ipfire/red/keepconnected
- killproc /usr/sbin/pppd
+ kill -TERM /usr/sbin/pppd 2>/dev/null
+ evaluate_retval
+ sleep 5
ip addr del 1.1.1.1/24 broadcast 1.1.1.255 dev ${DEVICE}