qos-scripts: fix indentation
authorMoritz Warning <moritzwarning@web.de>
Tue, 10 Jul 2018 16:50:30 +0000 (18:50 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 11 Jul 2018 07:40:40 +0000 (09:40 +0200)
Signed-off-by: Moritz Warning <moritzwarning@web.de>
package/network/config/qos-scripts/files/usr/bin/qos-start
package/network/config/qos-scripts/files/usr/bin/qos-stop
package/network/config/qos-scripts/files/usr/lib/qos/generate.sh

index 261ffb42b095d048abd60786f10209c02c533b09..68dae706389b8916cda155abb060fc02b16ab816 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
+
 qos-stop 
 /usr/lib/qos/generate.sh all | sh
-
index 7f654d85877b1e8dc342bd37f5edf5466f2851f1..ea3bba3abf9a836267531ca04523b8692521ae5d 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+
 for iface in $(tc qdisc show | grep -E '(hfsc|ingress)' | awk '{print $5}'); do
        tc qdisc del dev "$iface" ingress 2>&- >&-
        tc qdisc del dev "$iface" root 2>&- >&-
index 48c9f4a9df00119f5cf452e60c1895011a7ed2c1..3ec7f80e531eb434b7c1b52292a96e16c98d64b0 100755 (executable)
@@ -118,21 +118,21 @@ parse_matching_rule() {
                                append "$var" "-m comment --comment '$value'"
                        ;;
                        *:tos)
-                                add_insmod xt_dscp
-                                case "$value" in
-                                        !*) append "$var" "-m tos ! --tos $value";;
-                                        *) append "$var" "-m tos --tos $value"
-                                esac
-                        ;;
+                               add_insmod xt_dscp
+                               case "$value" in
+                                       !*) append "$var" "-m tos ! --tos $value";;
+                                       *) append "$var" "-m tos --tos $value"
+                               esac
+                       ;;
                        *:dscp)
-                                add_insmod xt_dscp
+                               add_insmod xt_dscp
                                dscp_option="--dscp"
-                                [ -z "${value%%[EBCA]*}" ] && dscp_option="--dscp-class"
+                               [ -z "${value%%[EBCA]*}" ] && dscp_option="--dscp-class"
                                case "$value" in
-                                               !*) append "$var" "-m dscp ! $dscp_option $value";;
-                                               *) append "$var" "-m dscp $dscp_option $value"
-                                esac
-                        ;;
+                                       !*) append "$var" "-m dscp ! $dscp_option $value";;
+                                       *) append "$var" "-m dscp $dscp_option $value"
+                               esac
+                       ;;
                        *:direction)
                                value="$(echo "$value" | sed -e 's,-,:,g')"
                                if [ "$value" = "out" ]; then
@@ -428,7 +428,7 @@ start_cg() {
        cat <<EOF
 $INSMOD
 EOF
-  
+
 for command in $iptables; do
        cat <<EOF
        $command -w -t mangle -N qos_${cg} 
@@ -486,7 +486,7 @@ stop_firewall() {
                                -e 's/^-A/-D/' \
                                -e '${p;g}' |
                        # Make into proper iptables calls
-                       # Note:  awkward in previous call due to hold space usage
+                       # Note: awkward in previous call due to hold space usage
                        sed -n -e "s/^./${command} -w -t mangle &/p"
        done
 }