ifconfig está deprecado (2)

This commit is contained in:
fauno 2020-09-18 16:29:13 -03:00
parent e8955c82bc
commit 429eba2e4b

View File

@ -1,11 +1,7 @@
#!/bin/sh
# Este archivo da de baja la interfaz de la VPN
if which ip &>/dev/null ; then
ip link set ${INTERFACE} down
else
ifconfig ${INTERFACE} down
fi
ip link set ${INTERFACE} down
cd `dirname "$0"`
. ./run-script