[LEDE-DEV] [RFC 06/12] xburst: add /etc/config/system overrides via board.d
Jo-Philipp Wich
jo at mein.io
Tue May 31 07:24:52 PDT 2016
Use /etc/board.d/ to register hostname and ntp server overrides.
Signed-off-by: Jo-Philipp Wich <jo at mein.io>
create mode 100755 target/linux/xburst/base-files/etc/board.d/01_system
diff --git a/target/linux/xburst/base-files/etc/board.d/01_system b/target/linux/xburst/base-files/etc/board.d/01_system
new file mode 100755
index 0000000..16f4987
--- /dev/null
+++ b/target/linux/xburst/base-files/etc/board.d/01_system
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+ucidef_set_hostname "BenNanoNote"
+ucidef_set_ntpserver
+
+board_config_flush
+
+exit 0
--
2.1.4
More information about the Lede-dev
mailing list