aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2021-06-22 00:45:20 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2021-06-22 23:52:09 +0200
commit7a5a247c1fdea5e24e68958edade7747f065b066 (patch)
tree1fe7bc773253f6a2d00e09ba88f50218bb29423a
parentc0fdfd15fc8f1ad8c75c60a8393a6d8b5c2b3b19 (diff)
downloadupstream-7a5a247c1fdea5e24e68958edade7747f065b066.tar.gz
upstream-7a5a247c1fdea5e24e68958edade7747f065b066.tar.bz2
upstream-7a5a247c1fdea5e24e68958edade7747f065b066.zip
base-files: failsafe: Remove the VLAN modifier from interface name
Some interfaces have a VLAN modifier like :t in lan1:t, this modifier should be removed from the interface before calling preinit_ip_config(). Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 790561d5109ef81537fdb8ceb8eb183c0cab077c)
-rw-r--r--package/base-files/files/lib/preinit/10_indicate_preinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index 56e96c63ba..deb5f2ae3a 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -97,6 +97,8 @@ preinit_config_board() {
else
# trim any vlan ids
ifname=${ifname%\.*}
+ # trim any vlan modifiers like :t
+ ifname=${ifname%\:*}
fi
pi_ifname=$ifname