Commit graph

9073 commits

Author SHA1 Message Date
Hannu Nyman
878a64f538 typo: fileystem --> filesystem
fix typo:
sed -i "s/fileystem/filesystem/"

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-12-28 14:15:16 +02:00
Paul Spooren
6638e4cdd5 luci-app-attendedsysupgrade: remove outdated checks
the upgrade server used to store a md5 checksum and the image filesize,
due to complexity this was removed.

Instead a sha256sums file is created by the IB with additional
signature. The firmware filesize can be retrived by requesting
Content-Length data.sysupgrade_url.

As the deeper layers (rpcd) currently do not offer an easy way to to
perform a sha256sum check & verify a usign sig these features will be
re-added once supported.

Until then the security of the sysupgrades depend on TLS and so the
luci-app is meant as a demonstration only.

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-12-27 03:26:21 +01:00
Paul Spooren
99fea16179 luci-app-attendedsysupgrade: separate js from html
also use hide(), show() and $() like jquery

Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
2017-12-27 03:26:21 +01:00
Hannu Nyman
902b292609
Merge pull request #1486 from stangri/luci-app-advanced-reboot
luci-app-advanced-reboot: 2 new routers + error reporting
2017-12-26 19:36:40 +02:00
Stan Grishin
e045f4d8a4 luci-app-advanced-reboot: 2 new routers + error reporting
Added support for: Linksys EA3500 and ZyXEL NBG6817
Added error reporting to both system log and WebUI on errors

Signed-off-by: Stan Grishin <stangri@melmac.net>
2017-12-25 23:35:53 -08:00
Hannu Nyman
a2a1c35786
Merge pull request #1478 from musashino205/l10n/tmate-upd-ja
luci-app-travelmate: Update Japanese translation
2017-12-17 17:15:37 +02:00
INAGAKI Hiroshi
63efc28d48 luci-app-travelmate: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-12-17 22:28:27 +09:00
INAGAKI Hiroshi
2ef216a80d luci-app-travelmate: Sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-12-17 14:26:24 +09:00
Hannu Nyman
68cfa21274
Merge pull request #1476 from dibdot/travelmate
luci-app-travelmate: sync with travelmate 1.0.0
2017-12-15 23:53:14 +02:00
Dirk Brenken
8f5604ee9e luci-app-travelmate: sync with travelmate 1.0.0
* Various cleanups & small enhancements

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-12-15 19:17:07 +01:00
Hannu Nyman
2f41783c9c
Merge pull request #1473 from dibdot/travelmate
luci-app-travelmate: enhance wireless security connection settings
2017-12-13 22:00:36 +02:00
Dirk Brenken
c67066ebbf luci-app-travelmate: enhance wireless security connection settings
* fix wpa enterprise options
* add various wpa / wep options

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-12-13 20:26:02 +01:00
Hannu Nyman
8e6b1a6d86
Merge pull request #1468 from dibdot/travelmate
luci-app-travelmate: sync with travelmate 0.9.6
2017-12-09 09:39:47 +02:00
Dirk Brenken
c7b39ae08f luci-app-travelmate: sync with travelmate 0.9.6
* Turris omnia compability fixes
* OpenWrt theme fixes

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-12-09 08:23:31 +01:00
Hannu Nyman
6d086bfb94
Merge pull request #1466 from musashino205/l10n/tmate-upd-ja
luci-app-travelmate: Update Japanese translation
2017-12-08 16:45:18 +02:00
INAGAKI Hiroshi
6d4d17be72 luci-app-travelmate: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-12-08 15:24:20 +09:00
INAGAKI Hiroshi
9399cfd461 luci-app-travelmate: Sync translations
Synchronized translations with sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-12-08 14:40:12 +09:00
Hannu Nyman
b7906fc7c2
Merge pull request #1454 from kubco2/mwan3-fix-member-metric
luci-app-mwan3: fix member metric allowed values
2017-12-07 21:20:32 +02:00
Jo-Philipp Wich
a41215581d
Merge pull request #1452 from mkresin/master
fix DHCPv6 hostname display
2017-12-07 14:03:54 +01:00
Hannu Nyman
78ebfba390
Merge pull request #1465 from dibdot/travelmate
luci-app-travelmate: sync with travelmate 0.9.5
2017-12-06 18:58:25 +02:00
Dirk Brenken
2474cdd049 luci-app-travelmate: sync with travelmate 0.9.5
* add support for hidden uplinks
* add support for wpa enterprise uplinks
* various small fixes

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-12-06 17:05:40 +01:00
Hannu Nyman
de4c4b8063
Merge pull request #1463 from dibdot/adblock
luci-app-adblock: fix minor visual issue
2017-12-05 16:15:18 +02:00
Dirk Brenken
dce8ae85ff luci-app-adblock: fix minor visual issue
* fix visual issue in runtime section (originally provided by @ansuel)

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-12-04 22:26:18 +01:00
Jo-Philipp Wich
d2bbfa5077
Merge pull request #1459 from brianjmurrell/patch-1
Fix bad argument #1 to 'tonumber'
2017-12-04 15:03:42 +01:00
Brian J. Murrell
2c2e7f5cbb
Fix bad argument #1 to 'tonumber'
Fixes [FS#1118](https://bugs.lede-project.org/index.php?do=details&task_id=1118)

Luci chokes on devices that do not have _iptables_ installed with:

/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute firstchild dispatcher target for entry '/admin'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/admin/status'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute template dispatcher target for entry '/admin/status/overview'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occured: [string "/usr/lib/lua/luci/view/admin_status/index.h..."]:34: bad argument #1 to 'tonumber' (string expected, got nil)
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 </usr/lib/lua/luci/dispatcher.lua:140>

The code should be more defensive.
2017-12-04 08:44:00 -05:00
Jakub Janco
890a2fc828 luci-app-mwan3: fix member metric allowed values
mwan3 accepts only 1-256 metric of member, if it is more, member is ignored.
This patch fix translations and allowed values of member metric input.

Signed-off-by: Jakub Janco <kubco2@gmail.com>
2017-11-29 00:30:53 +01:00
Paul Spooren
802d5b6bec luci-app-attendedsysupgrade: use rpc-sys pkglist
The bash package rpcd-mod-packagelist is no longer required as it has
been ported to rpc-sys by @dangowrt. The luci app now uses that feature.

The packagelist.acls is no longer required and has been removed.

luci-app-attendedsysupgrade: follow new server api

a new api uses more status codes and headers instead of genric 400 code
with json payload.

show error message when ubus call fail

fix typo

more info here
https://github.com/aparcar/attendedsysupgrade-server#response-status-codes

luci-app-attendedsysupgrade: refactoring

luci-app-attendedsysupgrade: use checksum

now compares cgi-io md5 checksum with md5 of server
as well checks if enough free memory is available to store image

Added needed ACL to let Luci request "system info"

rename "image" to "firmware" in output strings. This was requested as
"unification"

rpcd-mod-packelist used to return a variable called "packagelist", the
new "rpc-sys packagelist" returns a variable called "packages". This has
been adapted.

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-11-24 02:10:31 +01:00
Hannu Nyman
c647121e0a
Merge pull request #1445 from dibdot/travelmate
luci-app-travelmate: Chaos Calmer bugfixes
2017-11-21 05:51:17 +02:00
Dirk Brenken
49cfa04e6c luci-app-travelmate: Chaos Calmer bugfixes
* fixes for Chaos Calmer compatibility

Signed-off-by: Dirk Brenken <dev@brenken.org>
2017-11-19 20:04:46 +01:00
Mathias Kresin
0a2c7b9e5c luci-mod-admin-full: indicate DHCPv6 hostname mismatch
In case the DUID can be mapped to the MAC-Address of an already known
host, show the already know hostname next to the DHCPv6 supplied one in
case they differ.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-11-17 01:37:21 +01:00
Mathias Kresin
9f5a1de8b1 luci-mod-admin-full: always indicate missing DHCPv6 hostname
Don't show a DHCPv6 supplied hostname if none was send. It happens in
case the DUID can be mapped to the MAC-Address of an existing host and
the existing host has a name set.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-11-17 01:37:19 +01:00
Mathias Kresin
a1ee8e16b6 luci-mod-admin-full: don't replace DHCPv6 hostname
Don't replace the DHCPv6 supplied hostname if the DUID can be mapped to
the MAC-Address of an already known host.

It hides the issue of a missing DHCPv6 hostname and could lead to the
conclution that the already known host has an IPv6 address.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-11-17 01:27:18 +01:00
Paul Spooren
4891deaf94 luci-app-attendedsysupgrade: use common
use attendedsysupgrade-common package and rpc-sys instead of
rpcd-mod-attendedsysupgrade

luci-app-attendedsysupgrade: editable server url

the server url can now be changed. The solution is kept as simple as
possible to not introduce any lua code.

Small cleanup, but needs a refactoring.

Add acl rights to edit the attendedsysupgrade file

Add cgi-io as a dependencie to upload image to router

Signed-off-by: Paul Spooren <paul@spooren.de>
2017-11-12 03:09:33 +01:00
Hannu Nyman
ede51e4641 timezone data: update to 2017c
Update timezone data to 2017c

http://mm.icann.org/pipermail/tz-announce/2017-October/000047.html

   Briefly:
   Northern Cyprus switches from +03 to +02/+03 on 2017-10-29.
   Fiji ends DST 2018-01-14, not 2018-01-21.
   Namibia switches from +01/+02 to +02 on 2018-04-01.
   Sudan switches from +03 to +02 on 2017-11-01.
   Tonga likely switches from +13/+14 to +13 on 2017-11-05.
   Turks & Caicos switches from -04 to -05/-04 on 2018-11-04.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-11-11 18:59:14 +02:00
Hannu Nyman
96553cf6bf
Merge pull request #1436 from artioni81/patch-5
Update openvpn.po
2017-11-11 16:10:42 +02:00
artioni81
ef3cfb770b
luci-app-openvpn: update Italian translation
Signed-off-by: Artion Karreci <artionkarreci@gmail.com>
2017-11-11 12:42:55 +01:00
Hannu Nyman
ba3752ff71
Merge pull request #1438 from musashino205/l10n/upnp-upd-ja
luci-app-upnp: Update Japanese translation
2017-11-11 11:10:19 +02:00
INAGAKI Hiroshi
8e64e9bceb luci-app-upnp: Update Japanese translation
Updated Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-11-11 12:18:59 +09:00
INAGAKI Hiroshi
7f48b25038 i18n: Sync translations
Synchronized translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-11-11 12:14:52 +09:00
Andrea Merello
f0716ecd6e luci-mod-admin-full: add SNR tweak option to DSL
Reported-by: Andrea Merello <andrea.merello@gmail.com>
[rebase onto master, fix indentation, commit subject, depend on adsl mode]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 15:08:38 +01:00
Jo-Philipp Wich
084d8b120a luci-mod-admin-full: restrict DSL xfer_mode and line_mode options to VDSL modems
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:36:38 +01:00
artioni81
db4be00095
Update openvpn.po 2017-11-10 14:23:49 +01:00
Jo-Philipp Wich
932bae9873 protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly
quoted, causing them to over- or undermatch.

Follow up of #1435.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 14:20:53 +01:00
Jo-Philipp Wich
e0a7227a0c
Merge pull request #1435 from TDT-GmbH/proto_4x6_pattern_fix
luci-proto-ipv6: fix patterns in proto_4x6.lua
2017-11-10 14:06:54 +01:00
Martin Schiller
f8b1b8a47a luci-proto-ipv6: fix patterns in proto_4x6.lua
The dash '-' needs to be escaped by a '%', otherwise it will
be interpreted as minus, which means '0 or more repetitions'.

This fixes LEDE FS#1157.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2017-11-10 13:49:45 +01:00
Jo-Philipp Wich
b2274e5d6d
Merge pull request #980 from NvrBst/pull-request-upnp_description
luci-app-upnp: Adding and displaying "Description" to upnp data
2017-11-10 13:06:10 +01:00
Jan Pavlinec
37f4a3b90c luci-mod-admin-full: add DUID option to static leases section
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
[add field validation]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-10 13:00:26 +01:00
Jo-Philipp Wich
6b2ad7958e
Merge pull request #1428 from BigNerd95/wifi-80211r
luci-mod-admin-full: wifi.lua: ft_psk_generate_local and ft_over_ds
2017-11-10 12:53:05 +01:00
Jo-Philipp Wich
cbaf881f05
Merge pull request #1409 from FreifunkUFO/patch-1
meshwizard: upgrade version for some olsr-plugins
2017-11-10 12:46:12 +01:00
Lorenzo Santina
40c744d96a luci-mod-admin-full: wifi.lua: 80211r ft_over_ds
Allow user to chose if use FT over DS protocol or
FT over the Air protocol for Fast BSS Transition

Signed-off-by: Lorenzo Santina <lorenzo.santina@edu.unito.it>
2017-11-06 14:15:43 +01:00