summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
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-14luci-base:Turn off pattern matching when generating distversionChuanhong Guo
Otherwize the distrevision may be displayed twice if it contains some special matching patterns.(For example I am using "git-$hash" in my own OpenWrt branch.) Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2016-05-10Merge pull request #707 from ↵Hannu Nyman
SvenRoederer/fix/freifunk-communitysetting-selection/master luci-mod-freifunk: fix lookup of community-name
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-05-01i18n: sync translationsHannu Nyman
Sync translations Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-04-28luci-mod-freifunk: fix lookup of community-nameSven Roederer
restore the lookup of the freifunk community-name stored in uci "freifunk.community.name". In https://github.com/openwrt/luci/commit/9780ee382e72f8a5fb69e337a3fcc51fc0914883 the value changed to the complete path of the community-profile, e.g. "/etc/config/profile_berlin". This causes lookup problems on other pages, like "mod-freifunk -> overview -> index" (view/freifunk/index.htm line37, line 54). And as the option suggests it's the community-name not the community-profile path. Signed-off-by: Sven Roederer devel-sven@geroedel.de
2016-04-26luci-base: fix syntax error in luci.model.networkJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-04-26luci-base: add more ignore patterns to luci.model.networkJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-04-26luci-base: fix luci.model.network.ignore_interface()Jo-Philipp Wich
Fix the underlying _iface_ignore() function to not ignore virtual interfaces, in order to let ignore_interface() return true for PPP and similar devices. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-04-25Merge pull request #706 from KevinOConnor/anonidentity-20160407Manuel Munz
luci-mod-admin-full: Add option to set anonymous_identity field
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-17luci-base: read odhcpd leasefile location via uciHannu Nyman
Check the location of the odhcpd leasefile from /etc/config/dhcp via uci. Fallback to the default location. This fixes #702 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-04-08luci-base: utils: Make checklib return a booleanDaniel Dickinson
Using tristate is counter-intuitive and probably doesn't provide a lot of benefit so we use a boolean and treat "don't know" as false (because it is safer than showing options that are not actually available). Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.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-04-01Update network.luaOskari Rauta
Fix display of WAN status when WAN is provided by using WWAN device or similar with other similar similar methods. Explanation: Before this, protocol was fetched from /etc/config/network for interface which often is wan_4 - but protocol is configured in file as wan, and therefore protocol is always none, since configuration is made for wan and then setup as wan_4 and possibly wan_6 if ipv6 is being used. This commit uses ubus to get used active protocol. For example, in case of qmi, it displays protocol as dhcp since even if I configured wan to use qmi, dhcp was used as a protocol for getting IP address.
2016-03-30timezone data: update to 2016cHannu Nyman
Update timezone data to 2016c. 2016b: http://mm.icann.org/pipermail/tz-announce/2016-March/000036.html Changes affecting future time stamps New zones Europe/Astrakhan and Europe/Ulyanovsk for Astrakhan and Ulyanovsk Oblasts, Russia, both of which will switch from +03 to +04 on 2016-03-27 at 02:00 local time. They need distinct zones since their post-1970 histories disagree. New zone Asia/Barnaul for Altai Krai and Altai Republic, Russia, which will switch from +06 to +07 on the same date and local time. Also, Asia/Sakhalin moves from +10 to +11 on 2016-03-27 at 02:00. As a trial of a new system that needs less information to be made up, the new zones use numeric time zone abbreviations like "+04" instead of invented abbreviations like "ASTT". Haiti will not observe DST in 2016. Palestine's spring-forward transition on 2016-03-26 is at 01:00, not 00:00. Guess future transitions will be March's last Saturday at 01:00, not March's last Friday at 24:00. 2016c: http://mm.icann.org/pipermail/tz-announce/2016-March/000037.html Changes affecting future time stamps Azerbaijan no longer observes DST. Chile reverts from permanent to seasonal DST. Guess that future transitions are August's and May's second Saturdays at 24:00 mainland time. Also, call the period from 2014-09-07 through 2016-05-14 daylight saving time instead of standard time, as that seems more appropriate now. Note for Openwrt usage: Either musl or busybox does not like the new timezone format. Although the rule looks ok in /etc/TZ, timezone is interpreted wrongly by date, uptime etc. "Old timezones" are handle correctly, but these new "<+04>-4" style zones do not work. Example below: Europe/Helsinki root@OpenWrt:~# cat /etc/TZ EET-2EEST,M3.5.0/3,M10.5.0/4 root@OpenWrt:~# uptime 11:00:52 up 18:17, load average: 0.43, 0.13, 0.11 root@OpenWrt:~# date Wed Mar 30 11:00:55 EEST 2016 Europe/Astrakhan ( Time is showed as GMT instead of the correct zone and zone name is parsed wrongly ) root@OpenWrt:~# cat /etc/TZ <+04>-4 root@OpenWrt:~# uptime 08:02:52 up 18:19, load average: 0.17, 0.18, 0.13 root@OpenWrt:~# date Wed Mar 30 08:02:59 +04>-4 2016 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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-25luci-base: Add option to check linked librariesDaniel Dickinson
Some packages have different variants that have different capabilities depending on which libraries against which they are linked. Add a function to check which library a binary links against in order to determine available functionality. 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-21i18n: sync translationsHannu Nyman
Sync translations Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-20luci-base: fix bug in util.lua in 'shellsqescape'Hannu Nyman
Fix a bug introduced by #561 Function 'shellsqescape' calls 'gsub' with the empty result string 'res' instead of the actual parameter 'value'. This leads into error: .../util.lua:160: bad argument #1 to 'gsub' (string expected, got nil) Fix error by passing the correct parameter to the function. After the fix, the unmount button introduced by #561 finally works. 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>
2016-03-16Add support for showing ipv6 NAT table in LuciHannu Nyman
When kmod-nf-nat6 and kmod-ipt-nat6 are installed, the firewall has also the 'nat' table for ipv6, and packages like 'adblock' utilize that table. Currently that table is not shown on the Luci firewall status page, although it is visible by 'ip6tables -L -v -t nat' from console. Detect 'nat' table's presence from /proc/net/ip6_tables_names Show 'nat' table in Status->Firewall->IPv6 if that table is present. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-11luci-base: Include Openwrt build revision in displayed version stringHannu Nyman
The version string displayed in the footer and the overview page contains both LuCI and Openwrt versions. But due to differences in the contents of /etc/openwrt_release the exact Openwrt revision r..... may be missing: * In trunk that revision is included in the DISTRIB_DESCRIPTION field that is displayed in Luci as the Openwrt version. * In release branches, that field contains the release number like 15.05. Revision number is always present in DISTRIB_REVISION field, so add the revision from that field in case the revision is not already present in the string. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-10LuCI: Display the proper LuCI git branch in GUIHannu Nyman
Adjust luci.mk and luci-base to find out correctly if Luci is built from master or from a branch. Display that value in the footer and the overview page. * Evaluate the git branch in luci.mk and pass that to LuCI submodules as a make variable. Use branch name, ignore tags. * Deprecate svn detection in luci-base's mkversion.sh that generates version.lua. Simply use the value passed by make. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-07luci-mod-admin-full: add dsl configurationHauke Mehrtens
This makes it possible to configure the DSL line from luci. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-03-07luci-mod-admin-full: extend dsl statsHauke Mehrtens
This adds a lot of new status information about the dsl line. It now looks like this on a Telekom line: Status: UP Line State: showtime_tc_sync [0x801] Line Mode: G.993.2 (VDSL2) Annex: B Profile: 17a Data Rate: 51.391 Mb/s / 10.046 Mb/s Max. Attainable Data Rate (ATTNDR): 63.817 Mb/s / 23.908 Mb/s Latency: 4.0 ms / 8.0 ms Line Attenuation (LATN): 10.5 dB / 9.9 dB Signal Attenuation (SATN): 8.2 dB / 14.4 dB Noise Margin (SNR): 10.5 dB / 9.7 dB Aggregate Transmit Power(ACTATP): -14 dB / 12.4 dB Forward Error Correction Seconds (FECS): 1 / 1723485 Errored seconds (ES): 0 / 2477 Severely Errored Seconds (SES): 0 / 50 Loss of Signal Seconds (LOSS): 0 / 0 Unavailable Seconds (UAS): 31 / 31 Header Error Code Errors (HEC): 0 / 0 Non Pre-emtive CRC errors (CRC_P): 0 / 0 Pre-emtive CRC errors (CRCP_P): 0 / 0 Line Uptime: 2m 3s ATU-C System Vendor ID: Broadcom 176.15 Power Management Mode: L0 - Synchronized Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-03-07luci-mod-admin-full: rename ADSL to DSLHauke Mehrtens
This could also be a VDSL link Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-03-01modules/base: dispatcher: use default language if automatic choice failsMatthias Schiffer
Fall back to default language if "auto" is configured, but none provided by the browser matches. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-02-26i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-26luci-mod-admin-full: host-specific dhcp lease time option for static hostsHannu Nyman
Enable setting a host-specific lease time for static hosts. Format is similar as for the default lease time: e.g. 2m, 12h, 3d, infinite Default lease time is used for all hosts without host-specific definition. Support for the option was added to Openwrt trunk by r48801: https://dev.openwrt.org/changeset/48801 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-02-24luci-base: cbi: fix misplaced ID in nullsection templateJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-24luci-base: cbi: also initialize JS if pageactions are disabledJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-23luci-base: cbi: fix dependency handling of list and multivalues with ↵Jo-Philipp Wich
radio/checkbox widgets Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-20luci-base: luci.sys: canonicalize src and dest addrs in luci.sys.net.conntrack()Jo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-19luci-base: cbi: fix button handling for dynamic listsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-18Merge pull request #644 from chris5560/masterChristian Schoenebeck
luci-base: fixed tabbed map when using NamedSection of same type
2016-02-17luci-base: cbi.js: properly round down numbers for %u and %d patternsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-15luci-base: cbi.js: string formatting fixesJo-Philipp Wich
* Fix left and right justify/padding in formats * Do not emit decimal numbers for small values in %m format Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: rely on auto-serialization for combobox choicesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: rework ListValue and MultiValue templatesJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: dispatcher: let attr() automatically serialize JSONJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-02-10luci-base: cbi: properly handle dependant elements without parentJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>