浏览代码

Set hostname

Mikael Magnusson 7 年之前
父节点
当前提交
0cf7f39c16
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      files/etc/board.d/90-set_hostname

+ 14 - 0
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