xburst: add /etc/config/system overrides via board.d
authorJo-Philipp Wich <jo@mein.io>
Tue, 31 May 2016 12:23:06 +0000 (14:23 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 7 Jun 2016 22:31:09 +0000 (00:31 +0200)
Use /etc/board.d/ to register hostname and ntp server overrides.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
target/linux/xburst/base-files/etc/board.d/01_system [new file with mode: 0755]

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 (executable)
index 0000000..16f4987
--- /dev/null
@@ -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