@ -5,8 +5,8 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := rpcd-mod-attendedsysupgrade
PKG_VERSION := 1
PKG_RELEASE := 1
PKG_VERSION := 1.1
PKG_RELEASE := 2
PKG_LICENSE := GPL-2.0
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -20,8 +20,40 @@ define Package/rpcd-mod-attendedsysupgrade
e n d e f
d e f i n e P a c k a g e / r p c d - m o d - a t t e n d e d s y s u p g r a d e / d e s c r i p t i o n
implements sysupgrade function with ubus
add uci settings and needed acls
Implements a sysupgrade procedure which can be used to invoke sysupgrade via ubus calls
The sysupgrade image must be placed at /tmp/sysupgrade.bin
After a successfull installation the device will perform a restart.
Usage:
ubus call attendedsysupgrade sysupgrade
Example output:
{
"message" : "starting sysupgrade"
}
Possible parameters:
keep_settings: bool # preserve /config/
UCI options:
attendedsysupgrade.server.url
URL of compatible upgrade server [ 1]
attendedsysupgrade.client.upgrade_packages
Client should request image also if no new release but new packages upgrade are available.
attendedsysupgrade.client.advanced_mode
Offer advanced options like editing packages before request and show additional information.
attendedsysupgrade.client.auto_search
Tells the client to automattically search for upgrades
This can be done when opening luci or login in to console - depends on client.
[ 1] : https://github.com/aparcar/gsoc17-attended-sysupgrade
e n d e f
d e f i n e B u i l d / C o m p i l e
@ -31,9 +63,6 @@ define Build/Configure
e n d e f
d e f i n e P a c k a g e / r p c d - m o d - a t t e n d e d s y s u p g r a d e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/share/rpcd/acl.d/
$( INSTALL_BIN) ./files/attendedsysupgrade.acl $( 1) /usr/share/rpcd/acl.d/attendedsysupgrade.json
$( INSTALL_DIR) $( 1) /usr/libexec/rpcd/
$( INSTALL_BIN) ./files/attendedsysupgrade.rpcd $( 1) /usr/libexec/rpcd/attendedsysupgrade