[packages] multiwan: Changed sed to simply remove the last digit.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@21433 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
craigc 2010-05-12 21:19:51 +00:00
parent e422402e0b
commit f8f869b6cc
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=multiwan
PKG_VERSION:=1.0.11
PKG_RELEASE:=1
PKG_RELEASE:=2
include $(INCLUDE_DIR)/package.mk

View File

@ -705,7 +705,7 @@ last_probability=$(expr $x / $(expr $total_wans - $i + 1))
rand_probability=$(expr $(expr $weight \* 1000) / $total_weight)
roundlen=`expr length $rand_probability - 1`
roundme=${rand_probability:$roundlen}
rand_probability=$(echo $rand_probability | sed s/$roundme//)
rand_probability=$(echo $rand_probability | sed 's/\(..\)\(.\)/\1/g')
if [ $roundme -ge 5 ]; then
rand_probability=$(expr $rand_probability + 1)