708 |
if ps -A|grep udhcpc > /dev/null |
if ps -A|grep udhcpc > /dev/null |
709 |
then |
then |
710 |
echo -e ${COLMAGENTA}"Forcing network down"${COLDEFAULT} |
echo -e ${COLMAGENTA}"Forcing network down"${COLDEFAULT} |
711 |
killall udhcpc |
killall udhcpc &> /dev/null |
712 |
sleep 1 |
sleep 1 |
713 |
fi |
fi |
714 |
[[ ${ALX_CONFD_NETWORKING} = true ]] && [[ ${RUNLEVEL} != S ]] && \ |
[[ ${ALX_CONFD_NETWORKING} = true ]] && [[ ${RUNLEVEL} != S ]] && \ |
723 |
else |
else |
724 |
echo -e ${COLOREDSTAR}"Starting default dhcp based networking ... "${COLDEFAULT} |
echo -e ${COLOREDSTAR}"Starting default dhcp based networking ... "${COLDEFAULT} |
725 |
# -t 10 timeout of 10 secs |
# -t 10 timeout of 10 secs |
726 |
dhcpcd -t 10 &> /dev/null |
udhcpc -t 10 &> /dev/null |
727 |
evaluate_retval |
evaluate_retval |
728 |
fi |
fi |
729 |
;; |
;; |