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:48:44 +0000 (13:48 +0200)
commit0c8f72639ff018510974dc3c4059ad23a5c5c358
tree8268c2505898b1c3d1780342dd2dd89ac2b79f6d
parenteb11207397fe39ab37407ceeafb94b340d05a9e9
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