[openwrt/openwrt] qos-scripts: fix trailing whitespace in config files

LEDE Commits lede-commits at lists.infradead.org
Tue Sep 27 08:18:05 PDT 2022


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3e2ea10e5e53540fa62bae549e9526999b95f74b

commit 3e2ea10e5e53540fa62bae549e9526999b95f74b
Author: Manas Sambhus <manas.sambhus+github at gmail.com>
AuthorDate: Thu Aug 4 16:54:18 2022 +0530

    qos-scripts: fix trailing whitespace in config files
    
    Signed-off-by: Manas Sambhus <manas.sambhus+github at gmail.com>
---
 package/network/config/qos-scripts/files/usr/bin/qos-start     |  2 +-
 package/network/config/qos-scripts/files/usr/bin/qos-stat      |  2 +-
 .../network/config/qos-scripts/files/usr/lib/qos/generate.sh   | 10 +++++-----
 .../network/config/qos-scripts/files/usr/lib/qos/tcrules.awk   |  1 -
 4 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/package/network/config/qos-scripts/files/usr/bin/qos-start b/package/network/config/qos-scripts/files/usr/bin/qos-start
index 68dae70638..13d7772095 100755
--- a/package/network/config/qos-scripts/files/usr/bin/qos-start
+++ b/package/network/config/qos-scripts/files/usr/bin/qos-start
@@ -1,4 +1,4 @@
 #!/bin/sh
 
-qos-stop 
+qos-stop
 /usr/lib/qos/generate.sh all | sh
diff --git a/package/network/config/qos-scripts/files/usr/bin/qos-stat b/package/network/config/qos-scripts/files/usr/bin/qos-stat
index 03b737c89d..454e18aa72 100755
--- a/package/network/config/qos-scripts/files/usr/bin/qos-stat
+++ b/package/network/config/qos-scripts/files/usr/bin/qos-stat
@@ -32,7 +32,7 @@ print_comments() {
 	echo '# Direction: '"$2"
 	echo '# Stats:     '"$3"
 	echo ''
-}	
+}
 
 get_device() {
 	( config_load network; scan_interfaces; config_get "$1" ifname )
diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
index 12e085a3df..13aa173d18 100755
--- a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
@@ -64,7 +64,7 @@ parse_matching_rule() {
 	append "$var" "${proto:+-p $proto}"
 	for option in $options; do
 		config_get value "$section" "$option"
-		
+
 		case "$pkt:$option" in
 			*:srchost)
 				append "$var" "-s $value"
@@ -282,14 +282,14 @@ start_interface() {
 	config_get device "$iface" device
 	config_get_bool enabled "$iface" enabled 1
 	[ -z "$device" -o 1 -ne "$enabled" ] && {
-		return 1 
+		return 1
 	}
 	config_get upload "$iface" upload
 	config_get_bool halfduplex "$iface" halfduplex
 	config_get download "$iface" download
 	config_get classgroup "$iface" classgroup
 	config_get_bool overhead "$iface" overhead 0
-	
+
 	download="${download:-${halfduplex:+$upload}}"
 	enum_classes "$classgroup"
 	for dir in ${halfduplex:-up} ${download:+down}; do
@@ -373,7 +373,7 @@ add_rules() {
 	local var="$1"
 	local rules="$2"
 	local prefix="$3"
-	
+
 	for rule in $rules; do
 		unset iptrule
 		config_get target "$rule" target
@@ -437,7 +437,7 @@ EOF
 
 for command in $iptables; do
 	cat <<EOF
-	$command -w -t mangle -N qos_${cg} 
+	$command -w -t mangle -N qos_${cg}
 	$command -w -t mangle -N qos_${cg}_ct
 EOF
 done
diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk b/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk
index 21df391054..be95f99b01 100644
--- a/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk
+++ b/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk
@@ -103,4 +103,3 @@ END {
 		}
 	}
 }
-




More information about the lede-commits mailing list