Commit graph

7541 commits

Author SHA1 Message Date
Hannu Nyman
6787a0aa61 for-15.05 luci-base: set default mediaurlbase to bootstrap (default theme)
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 55ab4e4ce2

After 55ab4e4ce2 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>
(cherry picked from commit 1209ab6ba6)
2015-09-27 10:01:36 +03:00
Hannu Nyman
0b72c51475 for-15.05 luci-mod-admin-full: opkg config / prevent word-wrap
Prevent word-wrap on the config input areas. Especially the feed
definition lines can be long, and automatic word-wrap can decrease
clarity.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit c91a5eb2c4)
2015-09-26 21:10:30 +03:00
Hannu Nyman
5e7c0f0a3b for-15.05 luci-mod-admin-full: restore opkg feed config capability
opkg config change from r46491 was backported to CC15.05
by https://dev.openwrt.org/changeset/46848/

Existing /etc/opkg.conf was split to three:
   /etc/opkg.conf -> base opkg configuration
   /etc/opkg/distfeeds.conf -> default Openwrt package feeds
   /etc/opkg/customfeeds.conf -> custom package feeds

Since then the actual feed definitions have not been visible/configurable,
as only /etc/opkg.conf has been visible in Luci.

This patch restores the capability to see and edit package feed definitions.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit a42c0bb618)
2015-09-26 21:10:20 +03:00
Hannu Nyman
720f76c561 for-15.05 luci-app-firewall: use maxlength datatype for zone name validation
Backport from trunk the zonename validation using
a compound datatype "and(uciname,maxlength(14))"

fw3 sets the maximum length of the zone name to 14 and
ignores zone definitions with too long names.
Add a simple validation to ensure that the new zone name is short enough.

Backport of 34e875b3 and edc58332

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-26 20:35:34 +03:00
Jo-Philipp Wich
342af521eb Merge pull request #486 from dwmw2/for-15.05
luci/statistics: Fix nut UPS graphs
2015-09-22 23:04:34 +02:00
David Woodhouse
75327e3c35 luci/statistics: Fix nut UPS graphs
At some point since I last checked, the nut plugin for collectd changed the
names of the timeleft and percent datasets. Update the luci module to match
so that those graphs are generated correctly again.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
(cherry picked from commit 41ec4c68ad)
2015-09-22 21:56:59 +01:00
Hannu Nyman
30f6fe82af Merge pull request #474 from hnyman/entropy-1505
for-15.05 statistics: Backport entropy support, config cleanup, init scripts cleanup
2015-09-15 10:51:42 +03:00
Hannu Nyman
d91f0ef027 statistics: remove references to Lucid from scripts
Both init.d and uci-defaults scripts included in luci-app-statistics
still contained stuff related to lucid, which package was removed by
91b97bc9f6

Changes to scripts:
* init.d: lucid reference removed,
          /var/etc creation moved earlier (before first possible use)
* uci-defaults: lucid parameters & restart removed
  (but busybox httpd stuff was left intact, although it might be unnecessary)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 0d5070c510)
2015-09-15 10:22:58 +03:00
Hannu Nyman
8e156d6e5c statistics: adjust default settings to match default plugins
Adjust default settings to match the plugins installed by default
(default plugins: iwinfo, interface, load)

* disable plugins not installed by default to avoid error messages at start
* remove references to Freifunk interfaces, as most users do not have those

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 4f429c5c8d)
2015-09-15 10:18:43 +03:00
Hannu Nyman
a2a61aae0f statistics: cleanup config file
No functional changes, but the file is reorganised:
* group settings: general settings / output plugins / input plugins
* sort settings inside a group
* remove quotes from option names to match the current uci behaviour
* whitespace corrections

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 6a4226b3d1)
2015-09-15 10:16:07 +03:00
Hannu Nyman
8b1de85db8 for-15.05 statistics: Add support for entropy stats
Backport the addition of statistics on the available entropy
from 7df0df48c0

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-15 10:09:57 +03:00
Hannu Nyman
3836b457b6 Luci opkg/packages: Limit version string display to 26 chars
Many packages currently include a git commit hash in version string.
That makes version strings very long and the version column takes much space
when listing available/installed packages in Luci.

Longest version string is 58 characters (micropython).
85 packages have at least 50 chars and 150 packages at least 40 chars.

Adjust Luci to display max. 26 characters (= luci's own version string).

Longer version strings are cut to: "first 21c" + ".." + "last 3c"

The last 3 chars are used to preserve the possible PKG_REVISION string.
E.g. 'opkg' has only hash+PKG_REVISION, so using only start of the string
might not be optimal.

Examples:

1.3.10-20150302-f2a889564b3a215902622b040a1247af38cb8203-1
1.3.10-20150302-f2a88..3-1

0.1-20150302-654c7d288603f7dae09eb09b57fb67b38c7ac6c3-1
0.1-20150302-654c7d28..3-1

9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
9c97d5ecd795709c8584e..d-7

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(backport of commit ca75918ff3)
2015-09-05 11:24:37 +03:00
Hannu Nyman
b179283a67 statistics: fix typo
sed -i "s/collected date/collected data/"

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-02 15:59:23 +03:00
hnyman
8d2b5702ec Merge pull request #455 from hnyman/backport-stats
for-15.05: statistics: Backport recent improvements
2015-08-29 15:48:31 +03:00
Hannu Nyman
7167d97d32 statistics: clarify CPU/processor graph by removing "idle" from it
Clarify the CPU time consumption graph by removing the "idle" data from it.
Especially with light traffic, removing "idle" enables the graph
to scale better and to properly show the CPU load variations.

If "idle" data needs to be seen, it might be added as a second graph below.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 5ce647746e)
2015-08-28 23:26:58 +03:00
Hannu Nyman
27ca0790ec statistics: clarify stats introduction
* Clarify the short explanation on the statistics section's front page.
* Mention the possibility of additional collectd plugins to get more stats.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 0141494935)
2015-08-28 23:26:58 +03:00
Hannu Nyman
f6a4436d84 statistics: memory plugin - improve graph by better scaling of y-axis
Utilise alt_autoscale_max to make the memory chart y-axis to scale better
for devices with e.g. 128 MB RAM.

Also fix the axis min value to 0.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 9a06498dbd)
2015-08-28 23:26:58 +03:00
Hannu Nyman
119eaf24d8 statistics: support rrdtool's alt_autoscale and alt_autoscale_max options
Implement support for alternative scaling of the y-axis.
By default, rrdtool will autoscale to 1,2,5,10,20,50,100,200,... etc.,
which is not always suitable (e.g. memory charts for device with 128 MB).

Rrdtool 1.0.50 already supports alternative autoscaling that creates
a tighter y-axis. Implement graph-level options in Luci statistics to
support those boolean options as "alt_autoscale" and "alt_autoscale_max".

info at http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 86ff4bd3a4)
2015-08-28 23:26:58 +03:00
Hannu Nyman
18593ecf00 statistics: cpu graph - add label definitions, add softirq and interrupt stats
CPU plugin in the Luci statistics was missing the label definitions,
so the field labels are like "cpu_system" instead of "System".
Add proper label definitions to CPU (like the other plugins already have).

The statistics graph was also missing softirq and interrupt stats, although colors
for them were defined. Softirq consumes massive amount of CPU especially with
any qos in use, so it is important for the user to see also that data. Add both
softirq and interrupt stats to the graph.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 962cd2c4c1)
2015-08-28 23:25:57 +03:00
kdarbyshirebryant
791ca8b6d2 Delete luci-upnp
Stop sys upgrade automatically disabling miniupnpd on first boot after upgrade.
I spent a lot of time tracking this behaviour down which only occurs if you have luci-app-upnp installed.
2015-08-21 15:08:28 +02:00
Jo-Philipp Wich
21cf10ca63 Merge pull request #445 from hnyman/for-15.05
statistics: fix ping graph label regression
2015-08-19 10:14:53 +02:00
Hannu Nyman
36a7fb48da statistics: fix ping graph label regression
Update to collectd 5.4.1 changed the field from "ping" to "value",
which was changed in the graph definition here, but the label definition
was forgotten. Field's label now reads "ping_IPaddr_value".

Correct the label definition to show only IPaddr like the other two graphs.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-19 11:10:30 +03:00
Karl Palsson
22f687d0b1 http.protocol: Support filehandlers for unhandled encodings
The setfilehandler() functions used for mime and url encoded message
bodies all operate with a signature of fh(meta, chunk, eof), but for
unhandled encodings, the callback was directly assigned to the sink
function, which has a signature of snk(chunk).  Insert a wrapper to
properly generate the EOF flag, and include a stub "meta" block
providing a virtual "name" and also the original client provided
Content-Type header, to possibly help with taking alternative actions in
the file handler.

The sink function created for raw content decoding also used the wrong
signature for the sink function.

Signed-off-by: Karl Palsson <karlp@remake.is>
2015-08-18 17:53:30 +02:00
Christian Schoenebeck
7d8163e568 Merge pull request #442 from hnyman/for-15.05
for-15:05: Timezone information: update to 2015f
2015-08-18 09:49:46 +02:00
Hannu Nyman
428d181bf3 for-15:05: Timezone information: update to 2015f
Changes in 2015e and 2015f:
http://mm.icann.org/pipermail/tz-announce/2015-June/000032.html
http://mm.icann.org/pipermail/tz-announce/2015-August/000033.html

     Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
     not 06-13 and 07-18 as we had guessed.

     Assume Cayman Islands will observe DST starting next year, using US rules.
     Although it isn't guaranteed, it is the most likely.

     North Korea switches to +0830 on 2015-08-15.
     The abbreviation remains "KST".

     Uruguay no longer observes DST.

     Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-17 22:59:53 +03:00
Michael Marley
c595f3095b luci-app-vnstat: Fix blank graphs for iface names with underscores
The regex used to process the iface query string argument in
vnstat.htm was stripping underscores, which caused the graph not to
display for interfaces with names containing underscores.  This
patch adds the underscore to that regex so that the interface name
will be correct and the graph will be displayed.

Signed-off-by: Michael Marley <michael@michaelmarley.com>
2015-08-10 09:37:23 +02:00
Georgi Valkov
3a7d738e27 Fix: A disabled wireless network may be shown as enabled, when multiple networks are defined on the same radio. 2015-07-27 11:39:01 +02:00
Georgi Valkov
91faca4009 Fix: Status for disabled wireless networks may display the SSID, BSSID and Mode of an active network on the same radio. 2015-07-27 11:39:01 +02:00
Georgi Valkov
5d71ab50fb When editing an AP wireless network in LuCI, if one or more STA networks are also present on the same radio, then the channel is locked and cannot be changed for the AP. The case when all STA networks are disabled is not considered. This patch fixes the issue. Disabled networks no longer apply a lock on the channel. 2015-07-27 11:39:01 +02:00
Georgi Valkov
7d1ed597c3 Workaround: saved administration site user and pass may appear on the Wireless configuration page, replacing the WPA key. 2015-07-27 11:39:01 +02:00
Jo-Philipp Wich
69fd4f14ee luci-mod-rpc: move luci config require into the authentication function (#427)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-07-15 23:29:15 +02:00
Jo-Philipp Wich
69e93baa2a luci-mod-rpc: add missing luci config require
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-07-15 22:32:44 +02:00
Manuel Munz
218e8f608e contrib/meshwizard: fix LAN with OLSR and DHCP 2015-07-07 12:23:32 +02:00
Manuel Munz
eb001ef897 contrib/meshwizard: fix a bug that occured when processing list options in set_defaults() 2015-07-05 01:34:24 +02:00
Manuel Munz
cf2e3f6c20 fix ifname in wifi overview (freifunk public status). 2015-06-28 16:10:04 +02:00
Manuel Munz
3a9e1af526 Fix routes on freifunk public status page 2015-06-28 16:09:36 +02:00
Manuel Munz
e3ee086d19 contrib/community-profiles/augsburg: Increase leasetime and bandwidth limits 2015-06-22 23:45:04 +02:00
Manuel Munz
9eb813979e applications/splash: remove set -x from splash.sh 2015-06-22 23:45:04 +02:00
Manuel Munz
2be6c91416 modules/freifunk: fix basics cbi model 2015-06-22 23:45:04 +02:00
Manuel Munz
fe3e14a716 applications/olsr: change config file download on olsr overview page to use seperate v4 and v6 config files 2015-06-22 23:45:03 +02:00
Manuel Munz
0382c12140 contrib/meshwizard: add ipv6only option to txtinfo/jsoninfo plugin config 2015-06-22 23:45:03 +02:00
Manuel Munz
84189026ad applications/olsr: redirect errors on jsoninfo connects with netcat to /dev/null to avoid spamming the log 2015-06-22 23:45:03 +02:00
Manuel Munz
1a647a9e3b applications/olsr: Get jsoninfo source port prom olsrd/olsrd6 config file 2015-06-22 23:45:03 +02:00
Manuel Munz
b0d1ce83b6 meshwizard: use different port (9091) for ipv6 jsoninfo 2015-06-22 23:45:03 +02:00
Manuel Munz
8fa78cf0d3 add changes that were missing in the last commit 2015-06-22 23:45:03 +02:00
Manuel Munz
7c7bad55d4 contrib/meshwizard: fix interaction with uci in OpenWrt CC, see https://dev.openwrt.org/ticket/19539 2015-06-22 23:44:40 +02:00
Christian Schoenebeck
8005ecb2b9 Merge pull request #418 from chris5560/for-15.05
[for-15.05] luci-app-radicale: copied from master
2015-06-16 21:59:10 +02:00
Christian Schoenebeck
aff488d5d1 [for-15.05] luci-app-radicale: copied from master
Initial release
with fixed function ipkg_ver_compare()

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-16 17:30:50 +02:00
Jo-Philipp Wich
f27ebb620c Merge pull request #415 from chris5560/for-15.05
[for-15.05]luci-app-privoxy: update to version 1.0.4-2
2015-06-16 09:55:47 +02:00
Jo-Philipp Wich
3d08fcb632 Merge pull request #417 from fabio70mi/patch-2
Update base.po
2015-06-16 09:54:36 +02:00