base-files: implement ucidef_set_hostname(), ucidef_set_ntpserver()
authorJo-Philipp Wich <jo@mein.io>
Wed, 3 May 2017 11:32:33 +0000 (13:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 3 May 2017 11:47:57 +0000 (13:47 +0200)
commit65de093c18dab98046865c588fe7623e531f9580
tree998de94e56b3e0d8d878070844b3d56f60999dcc
parent0c3fe281e3bd56402583689e8450835c6262eb2b
base-files: implement ucidef_set_hostname(), ucidef_set_ntpserver()

Commit 2036ae4 (base-files: support hostname and ntp servers through board.d)
was supposed to implement these procedures but lacked the required changes
to uci-defaults.sh.

Add the missing procedures now to fix config generation on targets relying
on hostname or NTP server presetting.

Fixes FS#754.

Reported-by: Cristian Morales Vega <cristian@samknows.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/base-files/files/lib/functions/uci-defaults.sh