1 2 3 4 5 6 7 8 9 10
#!/bin/sh [ -x /sbin/vconfig ] || exit 0 [ -e /proc/net/vlan/$IFACE ] && ( ip link set down dev $IFACE vconfig rem $IFACE ) exit 0