oxnas: set preinit interface in /etc/board.d/02_network
authorDaniel Golle <daniel@makrotopia.org>
Mon, 15 Aug 2016 00:47:39 +0000 (02:47 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 19 Aug 2016 15:53:50 +0000 (17:53 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/oxnas/base-files/etc/board.d/02_network
target/linux/oxnas/base-files/lib/preinit/07_set_preinit_iface_oxnas.sh [deleted file]

index a025027fea7e71900aa07384dfd24eb4b91810c7..b44696bed825a1e7d1af09277584fd87c15f5681 100755 (executable)
@@ -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 (file)
index 1e096bb..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-oxnas_set_preinit_iface() {
-       ifname=eth0
-}
-
-boot_hook_add preinit_main oxnas_set_preinit_iface