Package: wondershaper
Followup-For: Bug #292123

attached patch fixes the offending bashism.
these are integer comparision use their operators
and not the ones comparing strings.



--- wshaper.orig        2005-05-20 23:17:21.000000000 +0200
+++ wshaper     2005-05-20 23:17:09.000000000 +0200
@@ -4,26 +4,26 @@
 
 # Modifications by Vince Mulhollon for debian package
 
-if [ $# == 0 ]; then
+if [ $# -eq 0 ]; then
   echo Please read the man page for the wondershaper and 
   echo the file /usr/share/doc/wondershaper/README.Debian
   exit
 fi
 
-if [ $# == 1 ]; then
+if [ $# -eq 1 ]; then
   tc -s qdisc ls dev $1
   tc -s class ls dev $1
   exit
 fi
 
-if [ $# == 2 ]; then
+if [ $# -eq 2 ]; then
   tc qdisc del dev $2 root    2> /dev/null > /dev/null
   tc qdisc del dev $2 ingress 2> /dev/null > /dev/null
   echo Wondershaper queues have been cleared.
   exit
 fi
 
-if [ $# != 3 ]; then
+if [ $# -ne 3 ]; then
   echo Please read the man page for the wondershaper and
   echo the file /usr/share/doc/wondershaper/README.Debian
   exit




-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to