Commit 88e37964 authored by Nicholas's avatar Nicholas
Browse files

Add ifdown before ifup

parent 69aaf0ce
......@@ -33,7 +33,7 @@ if [ -n "$DISABLED" ]; then
logger -t DEBUG "$DISABLED"
if [ "$RUNNING" -eq "0" ]; then
$RUNNING="1"
ifup $MODEMIFACE && $RUNNING="0" && return 0
ifdown $MODEMIFACE && ifup $MODEMIFACE && $RUNNING="0"
fi
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment