[source] oxnas: set preinit interface in /etc/board.d/02_network

LEDE Commits lede-commits at lists.infradead.org
Fri Aug 19 08:54:38 PDT 2016


dangole pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=f71f7f0df15a78a5793b8f8cdc6abff7563245e3

commit f71f7f0df15a78a5793b8f8cdc6abff7563245e3
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Aug 15 02:47:39 2016 +0200

    oxnas: set preinit interface in /etc/board.d/02_network
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/oxnas/base-files/etc/board.d/02_network               | 2 ++
 .../oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh     | 7 -------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/target/linux/oxnas/base-files/etc/board.d/02_network b/target/linux/oxnas/base-files/etc/board.d/02_network
index a025027..b44696b 100755
--- a/target/linux/oxnas/base-files/etc/board.d/02_network
+++ b/target/linux/oxnas/base-files/etc/board.d/02_network
@@ -5,6 +5,8 @@
 
 board_config_update
 
+ifname=eth0
+
 ucidef_set_interface_lan "eth0" "dhcp"
 
 board_config_flush
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
deleted file mode 100644
index 1e096bb..0000000
--- a/target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-oxnas_set_preinit_iface() {
-	ifname=eth0
-}
-
-boot_hook_add preinit_main oxnas_set_preinit_iface



More information about the lede-commits mailing list