firmware/general/overlay/etc/network/if-post-down.d/vlan

13 lines
176 B
Bash
Executable File

#!/bin/sh
if [ -z "$IF_VLAN_RAW_DEVICE" ] && [ -z "`echo $IFACE | grep '.\+\.[0-9]\+$'`" ]
then
exit 0
fi
if [ ! -x /sbin/vconfig ]
then
exit 0
fi
vconfig rem $IFACE