|
|
@ -109,7 +109,7 @@ iface $DEV inet static
|
|
|
|
EOT
|
|
|
|
EOT
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$GATEWAY" ]; then
|
|
|
|
if [ -n "$GATEWAY" ]; then
|
|
|
|
echo " gateway $GATEWAY"
|
|
|
|
echo " gateway $GATEWAY"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
@ -123,7 +123,7 @@ iface $DEV inet6 static
|
|
|
|
EOT
|
|
|
|
EOT
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$GATEWAY6" ]; then
|
|
|
|
if [ -n "$GATEWAY6" ]; then
|
|
|
|
echo " gateway $GATEWAY6"
|
|
|
|
echo " gateway $GATEWAY6"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
@ -196,9 +196,9 @@ deactivate_network()
|
|
|
|
IFACES=`/sbin/ifquery -la`
|
|
|
|
IFACES=`/sbin/ifquery -la`
|
|
|
|
|
|
|
|
|
|
|
|
for i in $IFACES; do
|
|
|
|
for i in $IFACES; do
|
|
|
|
if [ $i != 'lo' ]; then
|
|
|
|
if [ $i != 'lo' ]; then
|
|
|
|
/sbin/ifdown $i
|
|
|
|
/sbin/ifdown $i
|
|
|
|
/sbin/ip addr flush dev $i
|
|
|
|
/sbin/ip addr flush dev $i
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
else
|
|
|
|
else
|
|
|
|