mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-15 20:03:57 +02:00
![Paul Spooren](/assets/img/avatar_default.png)
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>
14 lines
271 B
Bash
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
|