From a9b2cc4804419a5cc3ff5151d43c5c55441d267b Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 25 Jul 2020 23:13:26 +0200 Subject: [PATCH 1/2] scripts: download.pl: fix indentation Signed-off-by: David Bauer --- scripts/download.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/download.pl b/scripts/download.pl index be0bdbb3fc..e9aa785f1c 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -257,7 +257,7 @@ foreach my $mirror (@ARGV) { push @mirrors, "ftp://ftp.riken.jp/Linux/kernel.org/$dir"; push @mirrors, "ftp://www.mirrorservice.org/sites/ftp.kernel.org/pub/$dir"; } - } elsif ($mirror =~ /^\@GNOME\/(.+)$/) { + } elsif ($mirror =~ /^\@GNOME\/(.+)$/) { push @mirrors, "https://mirrors.ustc.edu.cn/gnome/sources/$1"; push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnome/sources/$1"; push @mirrors, "http://ftp.acc.umu.se/pub/GNOME/sources/$1"; @@ -267,8 +267,7 @@ foreach my $mirror (@ARGV) { push @mirrors, "http://ftp.belnet.be/ftp.gnome.org/sources/$1"; push @mirrors, "ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/$1"; push @mirrors, "ftp://ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/$1"; - } - else { + } else { push @mirrors, $mirror; } } From 4a97f8383960568b4cc3ee9a66d643de9ce41cef Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sun, 26 Jul 2020 22:37:53 +0200 Subject: [PATCH 2/2] base-files: disable LEDs if default state is undefined Set the default state for LEDs to off. When a trigger is set, the trigger will turn the LED automatically on. Currently LEDs might stay on, e.g. when the LED trigger is set to a netdev trigger and the interface is never activated or the 'none' trigger is selected without setting the 'default' option to 0 and it's set for the LED indicating the system running state. Using off as a default value is also consistent with the documentation in the OpenWrt wiki. Signed-off-by: David Bauer --- package/base-files/files/etc/init.d/led | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 932a69a82b..277fb4e76f 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -21,7 +21,7 @@ load_led() { config_get dev $1 dev config_get ports $1 port config_get mode $1 mode - config_get_bool default $1 default "nil" + config_get_bool default $1 default "0" config_get delayon $1 delayon config_get delayoff $1 delayoff config_get interval $1 interval "50"