From 716ca530e1c4515d8683c9d5be3d56b301758b66 Mon Sep 17 00:00:00 2001 From: James <> Date: Wed, 4 Nov 2015 11:49:21 +0000 Subject: trunk-47381 --- .../mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh | 9 +++++++++ .../base-files/lib/preinit/05_set_preinit_iface_mpc85xx | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh create mode 100644 target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx (limited to 'target/linux/mpc85xx/base-files/lib/preinit') diff --git a/target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh b/target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh new file mode 100644 index 0000000..88ba608 --- /dev/null +++ b/target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +do_mpc85xx() { + . /lib/mpc85xx.sh + + mpc85xx_board_detect +} + +boot_hook_add preinit_main do_mpc85xx 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 0000000..22d7471 --- /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 -- cgit v1.2.3