#!/bin/sh
|
|
|
|
[ -e /etc/config/attendedsysupgrade ] && return 0
|
|
|
|
touch /etc/config/attendedsysupgrade
|
|
|
|
uci -q batch <<EOF
|
|
set attendedsysupgrade.server=server
|
|
set attendedsysupgrade.server.url='https://chef.libremesh.org'
|
|
|
|
set attendedsysupgrade.client=client
|
|
set attendedsysupgrade.client.upgrade_packages='1'
|
|
set attendedsysupgrade.client.auto_search='0'
|
|
set attendedsysupgrade.client.advanced_mode='0'
|
|
|
|
commit attendedsysupgrade
|
|
EOF
|