summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc
AgeCommit message (Collapse)Author
2017-01-28mod-admin-full: Add IPv6 Prefix Delegation information to Status PagesCody R. Brown
The Overview page and Network>Interfaces page currently do not give much information about IPv6, particularly with Prefix Delegated setups. In these setups, ISP will delegate a prefix to the router. Currently LuCI doesn't display this Prefix Delegation from the ISP anywhere. A number of changes was added to this commit: 1) self:_ubus("ipv6-prefix") was extracted and put into protocol.ip6prefix. 2) Network>Interfaces page, if a .ip6prefix is present, show it under Status. (IPv6-PD). 3) On the Overview page, "Type" and "Prefix Delegated" has been added to the IPv6 Network Overview Status: - Type will display the .proto, similar to the IPv4 case. If a .ip6prefix is present, it'll display a "-pd" at the end of the Type: i.e. dhcpv6-pd vs. dhcpv6. - If no .ip6prefix is present, it'll do what it does currently, and just show Address, or :: if no address is present. - If .ip6prefix is present, it'll show the "Prefix Delegated", it'll also hide "Address" if no address is present, else it'll show ifc6.ip6addr as well. Signed-off-by: Cody R. Brown <dev@codybrown.ca>
2017-01-26luci-mod-admin-full: admin: change password in Map.parse()Jo-Philipp Wich
Move the password setting into the .parse() callback to ensure that it is updated regardless of whether "Save" or "Save & Apply" has been pressed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-26luci-mod-admin-full: support configuring usbport LED triggersJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-25luci-mod-admin-full: reload wifi settings page after changing countey codeJo-Philipp Wich
Reloading the page ensures that the allowed tx power values and channel select lists are properly populated with the new effective values. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-25luci-mod-admin-full: allow unset txpower valueRafał Miłecki
Sometimes txpower is not set so we should have an option with empty value to let it stay unset. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-01-16Merge pull request #953 from musashino205/mount-fix-dispDaniel Dickinson
luci-mod-admin-full: Fix display problems of mount
2017-01-16Merge pull request #861 from ynezz/masterDaniel Dickinson
luci-mod-admin-full: Store system time into RTC also
2017-01-16Merge pull request #859 from feckert/realtime_wlanDaniel Dickinson
luci-mod-admin-full: show realtime wlan graph only if iw command is installed
2017-01-16luci-mod-admin-full: Fix display problems of mountINAGAKI Hiroshi
Fixed some display problems where the UUID label of the drop down list does not exist and the positions of other labels are misplaced in mount settings page. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-15luci-mod-admin-full: Fix display problem of wifi_addINAGAKI Hiroshi
Fixed an issue where the network name is displayed as "%q" on wlan connection destination network settings page. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-01-11luci-mod-admin-full: fix help text for wifi join optionsHannu Nyman
Clarify the help text in the wifi join dialog. Reference to #793, #876, #897 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-12-12luci-mod-admin-full: show realtime wlan graph only if iw command is installedFlorian Eckert
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2016-12-10Merge pull request #821 from andrewshadura/luci-route-typesDaniel Dickinson
Add support for route types
2016-12-10luci-mod-admin-{full,mini}: make more distro agnosticHannu Nyman
Remove some non-essential references to explicit distro names. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-12-10Merge pull request #656 from nlhintz/pull-requestDaniel Dickinson
luci: broadcom - add n-mode support
2016-12-09luci-mod-admin-full: handle infinite lease times in outputJo-Philipp Wich
When a lease objects expires property is set to "false", its expiry time is unlimited, so adjust the templates to properly display that state. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-11-28luci-mod-admin-full: Store system time into RTC alsoPetr Štetiar
We're currently just setting system time, but we don't set battery backed RTC. Time in the RTC is only set on the graceful shutdown, which is quite hard to achieve on embedded devices. In other words, on systems with battery backed RTC we currently don't handle following use case properly: 1. Set system time from web UI (sets only system time, but not RTC) 2. Unplug the device from power Then after the reboot, we've wrong system time again, because time set in [1] is not saved to battery backed RTC. Signed-off-by: Petr Štetiar <ynezz@true.cz>
2016-10-28Merge pull request #793 from remakeelectric/rme-master-tweaksJo-Philipp Wich
wifi_add minor usability tweaks
2016-10-21TypoDan Lüdtke
2016-10-08luci-mod-admin-full: routes: specify sizes for metric and MTUAndrew Shadura
Specify reasonable sizes for metric and MTU fields to prevent the table from being too wide. Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
2016-10-08luci-mod-admin-full: routes: add support for route typesAndrew Shadura
Allow specifying route types. Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
2016-09-23wifi_add: allow multi SSID by default if supported.Karl Palsson
Instead of defaulting to replace, even on hardware that supports multi SSID, make the default to add. This reduces the chance of locking oneself out when adding a second network. If you intended to replace, ending up with two networks then deleting one is easier than recovering when the old network configuration is gone. Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-09-23wifi_add: help text should match realityKarl Palsson
An additonal network is created if the box _is_ checked.
2016-09-23wifi_add: show the SSID of the network being joined.Karl Palsson
After clicking the "join" button on the scan list, the SSID is no longer visible, though it's kept in the form to pass to the server. Show the chosen SSID on the top of the page, to help people confirm that they're joining the right network. Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-24luci-mod-admin-full: tweak checksum item presentationHannu Nyman
Simplify the sysupgrade image checksum strings in order to avoid translating "Checksum xxx" items both for MD5 and SHA256. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-08-19luci-mod-admin-full: show also sha256 checksum for sysupgrade imagesHannu Nyman
Show also the sha256 checksum in addition to MD5 checksum to enable image verification also for builds with only sha256 checksums. If the 'sha256sum' command is not present in the system, the value remains empty. Note: The easiest way to get the 'sha256sum' command is to compile it into busybox. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-08-18luci-mod-admin-full: properly skip over unused switch portsJo-Philipp Wich
Fix incomplete port status display on vlan setup page when ports in the middle are not used, e.g. some Lantiq boards use ports 0, 1, 2 and 4 for LAN ports so JS code should not attempt to reference an undefined status element for port 3. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-18luci-mod-admin-full: fallback to generic switch topologyJo-Philipp Wich
Use a generic default topology if we cannot infer switch information from board.json and display an error message in this case. Should fix #779 and similar issues. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-15luci-mod-admin-full: use switch toplogy information for vlan setupJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-04luci-mod-admin-full: status page formatting fixJo-Philipp Wich
Display a question mark for undefined SSID and BSSID strings. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-07-31luci-mod-admin-full: fix net diagnostics with missing configJo-Philipp Wich
Gracefully handle a missing diag section in /etc/config/luci when rendering the network diagnostics tool page. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-07-29luci-mod-admin-full: make diagnostics url customizableFlorian Eckert
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2016-07-08Merge pull request #743 from HenryGiraldo/masterJo-Philipp Wich
Closes #741: Can't delete disabled wireless networks
2016-06-30luci-mod-admin-full: add log_file and log_proto supportJohn Crispin
Signed-off-by: John Crispin <john@phrozen.org> [Jo-Philipp Wich: remove file datatype constraint] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-16Closes #741: Can't delete disabled wireless networksEnrique Giraldo
When a wireless network is disabled it can't be removed. From wifi_overview.htm the delete call is generated as wlan0, wlan1 or whatever. This wlan is not working because it is disabled, then LuCI deletes the virtual radio which really is named as wlan0.
2016-06-09luci-mod-admin-full/mini: replace Wifi with Wireless in menusHannu Nyman
Replace the menu item "Wifi" by "Wireless", which is already used for page and section headings This closes #695 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-23luci-mod-admin-full: Look also if the file /etc/config/fstab exists.Guido Lipke
This pull request adds a condition, which checks whether the file "/etc/config/fstab" exists before it allows access to "mount points". Signed-off-by: Guido Lipke <lipkegu@gmail.com>
2016-05-02Merge pull request #703 from t0t3m1n/fix_snrHannu Nyman
luci-mod-admin-full: fix wrong dsl stats visualization
2016-05-01luci-mod-admin-full: dnsmasq options quietdhcp and sequential_ipHannu Nyman
Add support for dnsmasq uci options 'quietdhcp' and 'sequential_ip' (disable logging, allocate ip addresses sequentially) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-04-18luci-mod-admin-full: fix wrong dsl stats visualizationLuca Debernardi
This patch fixes the wrong visualization of Noise Margin (SNR) and Signal Attenuation (SATN) stats Signed-off-by: Luca Debernardi <luca.debernardi@gmail.com>
2016-04-07luci-mod-admin-full: Add option to set anonymous_identity fieldKevin O'Connor
Add support for setting the "anonymous_identity" field on EAP type networks. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2016-03-29Merge pull request #681 from cshore/pull-request-wifi-interface-nameHannu Nyman
luci-mod-admin-full: Add option to set wireless interface name
2016-03-29Merge pull request #680 from cshore/pull-request-dnsmasq-optionsHannu Nyman
luci-mod-admin-full: various dnsmasq options
2016-03-25luci-mod-admin-full: Add option to set wireless interface nameDaniel Dickinson
With mac80211 you can set the wireless interface; expose this capability. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
2016-03-25luci-mod-admin-full: various dnsmasq optionsDaniel Dickinson
Add some missing dnsmasq options. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
2016-03-25luci-mod-admin-full: Add DNSSEC dnsmasq optionDaniel Dickinson
If dnsmasq with DNSSEC support is enabled, display options to enable DNSSEC. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
2016-03-23luci-mod-admin-full: Enable reset in Luci also for ubiHannu Nyman
Enable reset in LuCI also for ubi based firmwares. This closes #672 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-19luci-mod-admin-full: Fix dhcpv6 ra_management option stateless valueHannu Nyman
Fix dhcpv6 ra_management option's handling of "stateless" value. Default value for the option is 1, so trying to store "" instead of "0" for stateless is not working. This fixes #676 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-17luci-mod-admin-full: allow writing empty crontab configFlorian Eckert
Write an empty crontab file to remove all content from file /etc/crontabs/root Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2016-03-17luci-mod-admin-full: add sleep before sysupgradeJo-Philipp Wich
- Under some conditions the system will shutdown uhttpd before the page will be delivered to the client. Waiting one second should eleminate this behaviour. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>