aboutsummaryrefslogtreecommitdiff
path: root/utils/attendedsysupgrade-common/files/attendedsysupgrade.defaults
blob: 4f49288866f661a601b77f5285470ceb2e8ce47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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://sysupgrade.openwrt.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