packages/utils/attendedsysupgrade-common/files/attendedsysupgrade.defaults
Paul Spooren 861e5eda86 attendedsysupgrade-common: add package
due to various clients and the existence of rpcd-mod-rpcsys the package
rpcd-mod-attendedsysupgrade is superflous.

From now on the attendedsysupgrade-common package should be dependencie
of all kinds of clients.

Currently active or planned:
- luci-app-attendedsysupgrade
- attendedsysupgrade cli in shell
- attendedsysupgrade cli in c

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-11-12 01:10:09 +01:00

17 lines
426 B
Bash

#!/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://example.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