[ "$(uci -q get glconfig.general.inited)" = "1" ] && exit 0

uci set system.@system[0].ttylogin=1

[ ! -f /etc/board.json ] && {
    . /lib/functions/gl_util.sh
    model=$(get_model  | awk '{ print toupper($1) }')
    uci set system.@system[0].hostname="GL-$model"
}

uci commit
