]> git.llucax.com Git - software/wpe.git/blobdiff - rotate-key
Bugfix: add a starting 1 to channel calculation.
[software/wpe.git] / rotate-key
index e834ae84d19c4e0f453a69c58ec1035addbe5635..14e20f12b25b1529a242a89d06854aa97340d0cc 100644 (file)
@@ -59,7 +59,7 @@ key=`echo "$str" | $HASH_PROG | cut -c-$size`
 # Compute the new channel
 if [ -n "$ROTATE_CHANNEL" ]
 then
-  chan=`echo $key | tr abcdef 847502 | cut -c-6`
+  chan=1`echo $key | tr abcdef 847502 | cut -c-6`
   chan=$(($chan % $MAX_CHANNEL + 1))
   channel="channel $chan"
 fi