mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
rename interface only if not bridge or tunnel
This commit is contained in:
parent
937872e05c
commit
db9577ba16
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ _set_intf_name() {
|
||||||
config_get device $intfname device
|
config_get device $intfname device
|
||||||
config_get modalias $intfname modalias
|
config_get modalias $intfname modalias
|
||||||
config_get ifname $intfname ifname
|
config_get ifname $intfname ifname
|
||||||
|
config_get type $intfname ifname
|
||||||
|
if [ "$type" = "tunnel" ] || [ "$type" = "bridge" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
[ -n "$modalias" ] && {
|
[ -n "$modalias" ] && {
|
||||||
if [ -f /sys/class/net/${INTERFACE}/device/uevent ]; then
|
if [ -f /sys/class/net/${INTERFACE}/device/uevent ]; then
|
||||||
chk_modalias=$MODALIAS
|
chk_modalias=$MODALIAS
|
||||||
|
|
Loading…
Reference in a new issue