From 1f5177a44cc5868936f0e3744a01d57fd760be49 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 22 Jul 2015 19:48:13 +0100 Subject: [PATCH] Three digits --- src/freedombone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone b/src/freedombone index 37da9107..463f51ad 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1586,8 +1586,8 @@ function mesh_babel { apt-get -y install babeld avahi-utils avahi-autoipd numarray=( 1 2 3 4 5 6 7 8 9 0 ) - a=${numarray[$RANDOM%10]}${numarray[$RANDOM%10]} - b=${numarray[$RANDOM%10]}${numarray[$RANDOM%10]} + a=${numarray[$RANDOM%2]}${numarray[$RANDOM%10]}${numarray[$RANDOM%10]} + b=${numarray[$RANDOM%2]}${numarray[$RANDOM%10]}${numarray[$RANDOM%10]} echo '#!/bin/sh' > /usr/bin/mesh-babel echo 'systemctl stop networking' >> /usr/bin/mesh-babel echo 'ifconfig wlan0 down' >> /usr/bin/mesh-babel