1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

rename interface only if not bridge or tunnel

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-22 15:51:56 +01:00
parent 937872e05c
commit db9577ba16

View file

@ -14,6 +14,10 @@ _set_intf_name() {
config_get device $intfname device
config_get modalias $intfname modalias
config_get ifname $intfname ifname
config_get type $intfname ifname
if [ "$type" = "tunnel" ] || [ "$type" = "bridge" ]; then
return
fi
[ -n "$modalias" ] && {
if [ -f /sys/class/net/${INTERFACE}/device/uevent ]; then
chk_modalias=$MODALIAS