diff --git a/luci/luci-app-falter-autoupdate/htdocs/luci-static/resources/view/falter-autoupdate/form.js b/luci/luci-app-falter-autoupdate/htdocs/luci-static/resources/view/falter-autoupdate/form.js index 32951274..fb1609b8 100644 --- a/luci/luci-app-falter-autoupdate/htdocs/luci-static/resources/view/falter-autoupdate/form.js +++ b/luci/luci-app-falter-autoupdate/htdocs/luci-static/resources/view/falter-autoupdate/form.js @@ -4,7 +4,9 @@ return view.extend({ render: function () { - var m, s, o1, o2, o3, o4; + var m, s, t, o1, o2, o3, o4, o5; + + addNotification('Warnasdfads', ) m = new form.Map('autoupdate', _('Freifunk Berlin Autoupdate'), _("Autoupdate will update your router automatically, once there is a new\ @@ -36,6 +38,14 @@ return view.extend({ _('Deactivates the Autoupdater. We do not recommend this!')); o4.rmempty = false; + o5 = s.option(form.Flag, 'ignore_mod', _('Ignore config changes'), + _("The autoupdater will detect custom changes you've applied to your router since you've run the wizard.\ + It will refuse an autoupdate then, to avoid breaking your customized setup. If you wish to automatically\ + update anyway, activate this option. We do not recommend this, as this might break your setup on auto-updates.")); + + + // t = m.section(form.TypedSection, 'autoupdatehints', _()) + return m.render(); } }); diff --git a/packages/falter-berlin-autoupdate/files/autoupdate.conf b/packages/falter-berlin-autoupdate/files/autoupdate.conf index eb2cb5df..a4194041 100644 --- a/packages/falter-berlin-autoupdate/files/autoupdate.conf +++ b/packages/falter-berlin-autoupdate/files/autoupdate.conf @@ -4,5 +4,7 @@ config generic cfg option minimum_certs 3 option disabled 0 option ignore_mod 0 + +config autoupdatehints cfh option mod_warning 0 option no_autou_avail 0