summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-attendedsysupgrade/root/etc/uci-defaults/95-luci-app-attendedsysupgrade-housekeeping
blob: 5ad127b82004fad91ff7c1da12a59611bb9c7721 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
check="$(uci -q get luci.main.check_for_newer_firmwares)"
if [ -n "$check" ]; then
        if ! uci -q get attendedsysupgrade.client.login_check_for_upgrades >/dev/null; then
                uci set attendedsysupgrade.client.login_check_for_upgrades="$check"
        fi
        uci -q delete luci.main.check_for_newer_firmwares
fi
exit 0