Skip to content

Commit

Permalink
ipq807x: set interface for failsafe
Browse files Browse the repository at this point in the history
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 <robimarko@gmail.com>
  • Loading branch information
robimarko committed Mar 14, 2022
1 parent 0baa8a1 commit ea3930c
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
set_preinit_iface() {
. /lib/functions.sh

case $(board_name) in
edgecore,eap102|\
redmi,ax6|\
xiaomi,ax3600)
ifname=eth1
;;
qnap,301w)
ifname=eth3
;;
*)
ifname=eth0
;;
esac
}

boot_hook_add preinit_main set_preinit_iface

0 comments on commit ea3930c

Please sign in to comment.