oxnas: set preinit network interface
authorDaniel Golle <daniel@makrotopia.org>
Thu, 11 Aug 2016 09:36:08 +0000 (11:36 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 11 Aug 2016 15:16:03 +0000 (17:16 +0200)
set network interface for failsafe mode to eth0 for all boards

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh [new file with mode: 0644]

diff --git a/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh b/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh
new file mode 100644 (file)
index 0000000..1e096bb
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+oxnas_set_preinit_iface() {
+       ifname=eth0
+}
+
+boot_hook_add preinit_main oxnas_set_preinit_iface