summaryrefslogtreecommitdiff
path: root/modules/luci-base/root/etc
Commit message (Collapse)AuthorAgeFilesLines
* luci-base: ucitrack: fix broken affects logicJo-Philipp Wich2022-03-301-3/+3
| | | | | | | | Changes on a given configuration should trigger change events on affected configurations, not the other way around. Fixes: #5745 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: remove deprecated radvd from ucitrackHannu Nyman2021-02-131-1/+1
| | | | | | | | Cleanup /etc/config/ucitrack by removing 'radvd' affect item from network, as the radvd package has deprecated by odhcpd and odhcp6c in 2014. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* ucitrack: fix bug for exec with paramsjjm24732020-03-231-1/+1
| | | | | | | | | | | In file `/etc/config/ucitrack` ``` config fstab option exec '/sbin/block mount' ``` `/sbin/block mount` never be called after fstab changed. Signed-off-by: jjm2473 <1129525450@qq.com>
* luci-base: ensure that ubus path uses trailing slashJo-Philipp Wich2020-03-131-1/+1
| | | | | | | Without the trailing slash, probing endpoint availability will fail. Fixes: 529bde440 ("luci-base: make rpc webserver path configurable") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: extend rollback timeout to 90 secondsJo-Philipp Wich2020-02-131-1/+1
| | | | | Ref: #3628 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: make rpc webserver path configurableAnsuel Smith2020-01-161-0/+1
| | | | | | | Currently the ubus path that provide the webserver is hardcoded to be /ubus. Change this to make it configurable from the luci config file. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* Merge pull request #952 from ↵Jo-Philipp Wich2018-07-161-1/+1
|\ | | | | | | | | cshore-history/pull-request-fstab-avoid-block-umount-on-apply luci-base: Avoid block umount on fstab apply
| * luci-base: Avoid block umount on fstab applyDaniel Dickinson2017-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | Default behaviour of changes to fstab (Mount Points) was to use /etc/init.d/fstab restart, however this unmounts filesystems via block umount which can cause the device to fail, so replace the initscript call with an exec of 'block mount'. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* | Merge pull request #1769 from jow-/masterJo-Philipp Wich2018-05-182-0/+63
|\ \ | | | | | | UCI apply/rollback workflow
| * | luci-base: add transitional /etc/init.d/ucitrackJo-Philipp Wich2018-05-051-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ship an /etc/init.d/ucitrack for spawning a virtual service with the sole purpose to track the configurations and dependencies formerly handled by luci-reload. Once all LuCI supported services ship with procd compatible init scripts, the uci track support can be dropped. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
| * | treewide: rework uci apply workflowJo-Philipp Wich2018-05-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to rpcd based uci apply/rollback workflow which helps to avoid soft- bricking devices by requiring an explicit confirmation call after config apply. When a user now clicks "Save & Apply", LuCI first issues a call to uci apply which commits and reloads configuration, then goes into a polling countdown mode where it repeatedly attempts to call uci confirm. If the committed configuration is sane, the confirm call will go through and cancel rpcd's pending rollback timer. If the configuration change leads to a loss of connectivity (e.g. due to bad firewall rules or similar), the rollback mechanism will kick in after the timeout and revert configuration files and pending changes to the pre-apply state. In order to cover such rare cases where a lost of connectivity is expected and desired, the user is offered an "unchecked" apply option after timing out, which allows committing and applying the changes anyway, without the extra safety checks. As a consequence of this change, the luci-reload mechanism is now completely unsused since rpcd uses ubus config reload signals to reload affected services, which means that only procd-enabled services will receive proper reload treatment with the new workflow. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* | | luci-base: reload log on uci system changeFlorian Eckert2018-05-071-0/+1
|/ / | | | | | | | | | | | | | | If log configuration get changed in uci system no new values are applied until reboot. Add /etc/init.d/log reload to exec option will solve this issue. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* / luci-base: add dhcp to system ucitrackFlorian Eckert2017-02-211-0/+1
|/ | | | | | | If hostname get changed in "/etc/config/system" dnsmasq should reloaded his config to be reached again under the URL [HOSTNAME].lan Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
* luci-base: remove default diag host from /etc/config/luciJo-Philipp Wich2016-10-061-5/+0
| | | | | | | | Now that luci-mod-admin-full figures out the proper diagnostics host during postinstall we can remove the UCI section from the default configuration file. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-mod-admin-full: make diagnostics url customizableFlorian Eckert2016-07-291-0/+5
| | | | Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
* luci-base: remove deprecated 6relayd from ucitrackHannu Nyman2016-05-251-3/+0
| | | | | | | Cleanup /etc/config/ucitrack by removing '6relayd' item, as the whole 6relayd package was removed in 2014. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* modules/luci-base: Move LuCI FileUpload directory to /etc/luci-uploads and ↵Daniel Dickinson2015-12-121-0/+0
| | | | | | | | | | | save across sysupgrade /lib/uci/upload is a rather odd place for configuration files Also the files were not saved across sysupgrade, which is somewhat counter-productive for configuration files. Signed-off By: Daniel Dickinson <openwrt@daniel.thecshore.com>
* luci-base: set default mediaurlbase to bootstrap (current default theme)Hannu Nyman2015-09-181-1/+1
| | | | | | | | | | | | | | The mediaurlbase option in the default /etc/config/luci still points to the old openwrt.org theme that is not installed by default. The discrepancy was noted in the commit message for 55ab4e4ce22 After 55ab4e4ce22 the installed theme's uci-defaults script will correct the setting at first boot, but we should not have a deprecated theme as the default value. Set the default value to the default theme 'bootstrap'. Related old discussion at #302 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* Rework LuCI build systemJo-Philipp Wich2015-01-082-0/+81
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>