mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 09:11:34 +01:00
15 lines
294 B
Bash
15 lines
294 B
Bash
#!/bin/sh
|
|
case "$IFACE" in
|
|
*#[0-9]*)
|
|
MVLANID="${IFACE##*#}"
|
|
IF_MVLAN_RAW_DEVICE="${IFACE%#*}"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
if [ -n "$IF_MVLAN_RAW_DEVICE" ]
|
|
then
|
|
# Kernel new style configuration
|
|
ip link del link dev "$IFACE"
|
|
fi
|