mirror of
https://github.com/novatiq/packages.git
synced 2026-07-30 07:13:07 +01:00
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>
(cherry picked from commit f9a6c81c11)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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
|