add uci option to set "update_packages". this options will lead the luci-app-attendedsysupgrade to tell the update server to check for package updates as well (not only release upgrades) Signed-off-by: Paul Spooren <paul@spooren.de>
17 lines
387 B
Bash
17 lines
387 B
Bash
#!/bin/sh
|
|
|
|
[ -e /etc/config/attendedsysupgrade ] && exit 0
|
|
|
|
touch /etc/config/attendedsysupgrade
|
|
|
|
uci -q batch <<EOF
|
|
set attendedsysupgrade.updateserver=updateserver
|
|
set attendedsysupgrade.updateserver.url='https://betaupdate.libremesh.org'
|
|
|
|
set attendedsysupgrade.updateclient=updateclient
|
|
set attendedsysupgrade.updateclient.update_packages='1'
|
|
|
|
commit attendedsysupgrade
|
|
EOF
|
|
|
|
exit 01
|