summaryrefslogtreecommitdiff
path: root/files/etc/board.d/90-set_hostname
blob: fae4b3cacb51d9eee544214d98f7648f14b9bcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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