1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-15 20:03:57 +02:00
openwrt-packages/utils/rpcd-mod-attendedsysupgrade/files/attendedsysupgrade.defaults
Paul Spooren f9a6c81c11 rpcd-mod-attendedsysupgrade: add package
add ubus call to perform a sysupgrade and acl file for the attended
sysupgrade use case as well uci defaults.
Package is a part of the GSoC 17 project implementing easy
sysupgrade functionality.

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-07-25 19:29:21 +02:00

14 lines
271 B
Bash

#!/bin/sh
[ -e /etc/config/attendedsysupgrade ] && exit 0
touch /etc/config/attendedsysupgrade
uci -q batch <<EOF
add attendedsysupgrade settings
set attendedsysupgrade.@settings[0].update_server=https://betaupdate.libremesh.org
commit attendedsysupgrade
EOF
exit 01