[LEDE-DEV] [PATCH 4/5] base-files: add generic board detection preinit script

Roman Yeryomin leroi.lists at gmail.com
Fri Apr 28 05:57:28 PDT 2017


Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 package/base-files/files/lib/preinit/03_preinit_board_detect | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/base-files/files/lib/preinit/03_preinit_board_detect

diff --git a/package/base-files/files/lib/preinit/03_preinit_board_detect b/package/base-files/files/lib/preinit/03_preinit_board_detect
new file mode 100644
index 0000000..2d64ca6
--- /dev/null
+++ b/package/base-files/files/lib/preinit/03_preinit_board_detect
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Copyright (c) 2017 The Linux Foundation. All rights reserved.
+#
+
+do_board_detect()
+{
+	include_file /lib/board_detect.sh && board_detect
+}
+
+boot_hook_add preinit_main do_board_detect
-- 
2.7.4




More information about the Lede-dev mailing list