Skip to content

Commit ea3930c

Browse files
committed
ipq807x: set interface for failsafe
Now that failsafe actually has working network interfaces, we need to set the correct interface that is desired to serve for failsafe. So, set the interfaces using the LAN networking config, it may need tweaking. Signed-off-by: Robert Marko <[email protected]>
1 parent 0baa8a1 commit ea3930c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
set_preinit_iface() {
2+
. /lib/functions.sh
3+
4+
case $(board_name) in
5+
edgecore,eap102|\
6+
redmi,ax6|\
7+
xiaomi,ax3600)
8+
ifname=eth1
9+
;;
10+
qnap,301w)
11+
ifname=eth3
12+
;;
13+
*)
14+
ifname=eth0
15+
;;
16+
esac
17+
}
18+
19+
boot_hook_add preinit_main set_preinit_iface

0 commit comments

Comments
 (0)