Three digits

This commit is contained in:
Bob Mottram 2015-07-22 19:48:13 +01:00
parent 6f2bd734b0
commit 1f5177a44c
1 changed files with 2 additions and 2 deletions

View File

@ -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