qos-scripts: fix trailing whitespace in config files
authorManas Sambhus <manas.sambhus+github@gmail.com>
Thu, 4 Aug 2022 11:24:18 +0000 (16:54 +0530)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 27 Sep 2022 15:16:46 +0000 (17:16 +0200)
Signed-off-by: Manas Sambhus <manas.sambhus+github@gmail.com>
package/network/config/qos-scripts/files/usr/bin/qos-start
package/network/config/qos-scripts/files/usr/bin/qos-stat
package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk

index 68dae706389b8916cda155abb060fc02b16ab816..13d777209581d206c1bd32e68ed91c0da134c3c1 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
-qos-stop 
+qos-stop
 /usr/lib/qos/generate.sh all | sh
index 03b737c89dc9f042aeb65a18a7590043eed40fc4..454e18aa72e6f47609ac6eba066e8f319fea658d 100755 (executable)
@@ -32,7 +32,7 @@ print_comments() {
        echo '# Direction: '"$2"
        echo '# Stats:     '"$3"
        echo ''
-}      
+}
 
 get_device() {
        ( config_load network; scan_interfaces; config_get "$1" ifname )
index 12e085a3dfa4a8d4d7ec23bd952d6172e01d0265..13aa173d182549324743b8ae05c9f3dd9deaa9d7 100755 (executable)
@@ -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
index 21df391054f2d5c14aae22a1ff419ee783e15760..be95f99b01d120a68a0a09742268f3bdc091d6b2 100644 (file)
@@ -103,4 +103,3 @@ END {
                }
        }
 }
-