1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add option to enable/disable interface rename

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-28 14:45:13 +01:00
parent db0ba4af80
commit 66f8f2b2fe
3 changed files with 19 additions and 3 deletions

View file

@ -58,6 +58,8 @@ _set_intf_name() {
}
}
config_load network
config_foreach _set_intf_name interface
config_foreach _set_intf_name interface
if [ "$(uci -q get openmptcprouter.settings.disableintfrename)" != "0" ]; then
config_load network
config_foreach _set_intf_name interface
config_foreach _set_intf_name interface
fi