Developing lightweight computation at the DSG edge

Commit a218f19d authored by p4u's avatar p4u
Browse files

Set hostname writing to /proc (remove need to reboot after change hostname)

parent 95977e86
......@@ -867,8 +867,10 @@ qmp_configure_system() {
local community_id="$(uci get qmp.node.community_id)"
[ -z "$community_id" ] && community_id="qmp"
# set hostname
uci set system.@system[0].hostname=${community_id}${community_node_id}
uci commit system
echo "${community_id}${community_node_id}" > /proc/sys/kernel/hostname
# enable IPv6 in httpd:
uci set uhttpd.main.listen_http="80"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment