summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
2016-10-04luci-base: fix luci-base host tool install on OpenWrtMatthias Schiffer
OpenWrt doesn't provide an argument to Host/Install like LEDE does; use HOST_BUILD_PREFIX instead, which is available on both. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-10-03luci-base: use default install paths for host utilsMatthias Schiffer
Also, don't make any assumptions about the staging dir lua and LuaSrcDiet were installed to. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-08-25Merge pull request #782 from Ansuel/masterHannu Nyman
Fix some capital and add some translation
2016-08-24Fix some capital and add some translationBuildTools
Hope this time I have done a good work
2016-08-24i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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-24Revert "Fix and update italian translation"Jo-Philipp Wich
This reverts commit 66d5023891ee948480042e7e0af81b5fc3e3b53e since the original change was apparently untested. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-23Fix and update italian translationAnsuel
I have fixed some capital letter and add some translation
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-18luci-base: properly style login alert messageJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-16i18n: sync translations, fix sv for adblockHannu Nyman
Sync translations. Fix the newly added sv translation for adblock. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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-15luci-base: support reading switch topology from /etc/board.jsonJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-04luci-base: cbi.js: handle undefined arguments in formattingJo-Philipp Wich
Fix the JavaScript String.format() to not trigger an exception if the argument for an escaped format like %h or %q is undefined. 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-08-04luci-base: fix handling of monitor ifacesJo-Philipp Wich
Wireless monitor interfaces usually have no SSID set in their config and various network model utility functions did not handle this case properly, mainly while trying to incorperate the SSID string into various description labels. Fall back to the internal network id (radioX.networkY) in cases where neither the SSID nor the BSSID are available. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-04luci-base: improve string format error reportingJo-Philipp Wich
In mod metamethod, execute string format under pcall() and rethrow error in caller context to report caller of function in errors and not the meta method itself. 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-10luci-mod-freifunk: Fix "Undefined reference to net.iwdata" Guido L
This PR fixes an Internal Server Error when requesting the Wireless Informations in luci-mod-freifunk. It checks an unindexed value "net.iwdata". ``` /usr/lib/lua/luci/dispatcher.lua:460: Failed to execute template dispatcher target for entry '/freifunk/status'. The called action terminated with an exception: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'freifunk/public_status'. A runtime error occured: [string "/usr/lib/lua/luci/view/freifunk/public_stat..."]:116: attempt to index field 'iwdata' (a nil value) stack traceback: [C]: in function 'assert' /usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:141: in function... ``` signed-off.by: Guido Lipke <lipkegu@gmail.com>
2016-06-09luci-base: cleanup translationsHannu Nyman
Cleanup the .po files by removing the archived old translation strings. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-06-09i18n: sync translationsHannu Nyman
sync translations Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
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-06-03luci-base: fix lua interpreter locationKevin Darbyshire-Bryant
An lua interpreter is required on the building host to run the luasrcdiet lua script. Due to a build change, the interpreter was not being installed to the correct location. Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
2016-06-03luci-base: fix whitespaceHannu Nyman
change spaces to tabs Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-30i18n: sync translationsHannu Nyman
sync translations. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-25luci-base: remove deprecated 6relayd from ucitrackHannu Nyman
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>
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