]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
fixed bug with math
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 6 Aug 1999 13:06:59 +0000 (13:06 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 6 Aug 1999 13:06:59 +0000 (13:06 +0000)
svn-id: @463

rc.d/init.d/functions.network

index aa4bdf46cf7df405fb78cad5f34458404a9ce6a2..ddb519bd775ff84a3a53a463150f9206b7eab087 100755 (executable)
@@ -1,5 +1,5 @@
 #
-# $Id: functions.network,v 1.14 1999/08/06 13:02:54 misiek Exp $
+# $Id: functions.network,v 1.15 1999/08/06 13:06:59 misiek Exp $
 #
 # This is not a shell script; it provides functions to network scripts
 # that source it.
@@ -75,8 +75,8 @@ eval VARD=\$${VAR}
 
 if [ -n "$VARD" ] && [ -e /proc/sys/net/$WHAT ]; then
        if [ "$TODO" == "start" ]; then
-               [ "$VARD" == "no" -a "$SET" == "1" ] && SET="(($SET - 1))"
-               [ "$VARD" == "yes" -a "$SET" == "0" ] && SET="(($SET + 1))"
+               [ "$VARD" == "no" -a "$SET" == "1" ] && SET="$(($SET - 1))"
+               [ "$VARD" == "yes" -a "$SET" == "0" ] && SET="$(($SET + 1))"
                if [ -n "$MESSAGE" ]; then
                        show "`nls Setting` $MESSAGE `nls to` $SET"; busy
                        if (echo "$SET" > /proc/sys/net/$WHAT) 2> /dev/null; then
This page took 0.062571 seconds and 4 git commands to generate.