mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 21:42:59 +03:00
shells: use (()) for math. not all support let. expr is external command
This commit is contained in:
parent
a91c0c29c8
commit
d940d41a2a
@ -118,7 +118,7 @@ run_daemon()
|
|||||||
PID=$(jobs -p %$JOBCT)
|
PID=$(jobs -p %$JOBCT)
|
||||||
if [ -n "$PID" ]; then
|
if [ -n "$PID" ]; then
|
||||||
echo $PID >$PIDFILE
|
echo $PID >$PIDFILE
|
||||||
JOBCT=`expr $JOBCT + 1`
|
JOBCT=$(($JOBCT+1))
|
||||||
else
|
else
|
||||||
echo could not start daemon $1 : $2 $3
|
echo could not start daemon $1 : $2 $3
|
||||||
fi
|
fi
|
||||||
|
@ -103,7 +103,7 @@ ask_list()
|
|||||||
n=1
|
n=1
|
||||||
for m in $2; do
|
for m in $2; do
|
||||||
echo $n : $m
|
echo $n : $m
|
||||||
n=`expr $n + 1`
|
n=$(($n+1))
|
||||||
done
|
done
|
||||||
echo -n "your choice (default : $M_DEFAULT) : "
|
echo -n "your choice (default : $M_DEFAULT) : "
|
||||||
read m
|
read m
|
||||||
@ -424,7 +424,7 @@ openwrt_fw_section_find()
|
|||||||
true
|
true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
i=`expr $i + 1`
|
i=$(($i+1))
|
||||||
done
|
done
|
||||||
false
|
false
|
||||||
return
|
return
|
||||||
|
@ -135,7 +135,7 @@ openwrt_fw_section_find()
|
|||||||
true
|
true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
i=`expr $i + 1`
|
i=$(($i+1))
|
||||||
done
|
done
|
||||||
false
|
false
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user