From 0cf7f39c160240e18253de3e8afec873b3efa85e Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 31 Jul 2018 12:18:23 +0000 Subject: Set hostname --- files/etc/board.d/90-set_hostname | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 files/etc/board.d/90-set_hostname diff --git a/files/etc/board.d/90-set_hostname b/files/etc/board.d/90-set_hostname new file mode 100755 index 0000000..fae4b3c --- /dev/null +++ b/files/etc/board.d/90-set_hostname @@ -0,0 +1,14 @@ +#!/bin/sh +# + +. /lib/functions/uci-defaults.sh + +board_config_update + +json_is_a system object && exit 0 + +ucidef_set_hostname "$(uname -n)" + +board_config_flush + +exit 0 -- cgit v1.2.3