aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2016-08-11 11:36:08 +0200
committerDaniel Golle <daniel@makrotopia.org>2016-08-11 17:16:03 +0200
commita9b1a429ab2541b173aea13d6aab9ab5ae82e332 (patch)
tree68335185ad3eb0ee2ff7ce2556970d61b47b08fc /target
parent592c0a1cd226b7c5a90fb2c3127ac1e0743c22fd (diff)
downloadupstream-a9b1a429ab2541b173aea13d6aab9ab5ae82e332.tar.gz
upstream-a9b1a429ab2541b173aea13d6aab9ab5ae82e332.tar.bz2
upstream-a9b1a429ab2541b173aea13d6aab9ab5ae82e332.zip
oxnas: set preinit network interface
set network interface for failsafe mode to eth0 for all boards Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target')
-rw-r--r--target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh7
1 files changed, 7 insertions, 0 deletions
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
index 0000000000..1e096bb0da
--- /dev/null
+++ b/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+oxnas_set_preinit_iface() {
+ ifname=eth0
+}
+
+boot_hook_add preinit_main oxnas_set_preinit_iface