base-files: failsafe: Remove the VLAN modifier from interface name
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Jun 2021 22:45:20 +0000 (00:45 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Jun 2021 21:52:09 +0000 (23:52 +0200)
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)

package/base-files/files/lib/preinit/10_indicate_preinit

index 56e96c63baabc0c320da9b3db3d4c5c916d6bb97..deb5f2ae3a25b89c349d169903baec1369a12ef8 100644 (file)
@@ -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