Allow already connected Bunny

No more need to disconnect and reconnect the bunny when using
bunny-connecter.sh

Also, it now looks for 00:11:22:33:44:55 instead of just 00:11:22
pull/575/head^2
rsxchin 2023-01-29 18:19:26 -10:00
parent e23e35a831
commit 9bb1cb816f
1 changed files with 0 additions and 6 deletions

View File

@ -125,12 +125,6 @@ function manualsetup {
}
function guidedsetup {
bunnydetected=$(ip addr | grep '00:11:22' -B1 | awk {'print $2'} | head -1 | grep 'eth\|en')
if [[ "$?" == 0 ]]; then
printf "\n Bash Bunny detected. Please disconnect the Bash Bunny from\n this computer and $(tput bold)press any key$(tput sgr0) to continue with guided setup.\n "
read -r -sn1 anykey
guidedsetup
fi
hasiproute2=$(which ip)
if [[ "$?" == 1 ]]; then
printf "\n\n Configuration requires the 'iproute2' package (aka the 'ip' command).\n Please install 'iproute2' to continue.\n"; menu