summaryrefslogtreecommitdiff
path: root/target/linux/mpc85xx/base-files/lib/preinit
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-04-12 18:30:25 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-04-12 18:30:25 +0000
commit22e8902cb43018628f61ef2ce4f2919166c27973 (patch)
treeb6c1862188cd18addfa860b429ab8b2667b191c9 /target/linux/mpc85xx/base-files/lib/preinit
parentad483d38f37556d8c59d8cb967fa5fb9659e286b (diff)
mpc85xx: set preinit interface to eth0 by default
This makes the WDR4900 accessible via ethernet in failsafe mode. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36322 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mpc85xx/base-files/lib/preinit')
-rw-r--r--target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
new file mode 100644
index 0000000000..22d7471dda
--- /dev/null
+++ b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+. /lib/mpc85xx.sh
+
+mpc85xx_set_preinit_iface() {
+ ifname=eth0
+}
+
+boot_hook_add preinit_main mpc85xx_set_preinit_iface