Compare commits

...

2 Commits

Author SHA1 Message Date
Ruben Mosblech f3599dbfe7
Merge 5742bbe2cd into 7a0f36f069 2024-08-19 17:38:28 -04:00
Ruben Mosblech 5742bbe2cd
Fix sharkjack.sh
Fix shark jack interface not getting detected. Grepping the ip and invert grepping (grep -v) the same ip cannot return anything (unless -A is set to greater than 1), thus $IFACE is always empty.
2019-09-15 13:09:40 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function locate_interface_to_shark() {
printf "\n%s" 'Waiting for a Shark Jack to be connected..'
while [[ -z $IFACE ]]; do
printf "%s" .
IFACE=$(ip route show to match 172.16.24.1 2>/dev/null| grep -i 172.16.24.1 | cut -d ' ' -f3 | grep -v 172.16.24.1)
IFACE=$(ip route show to match 172.16.24.1 2>/dev/null| grep -i 172.16.24.1 | cut -d ' ' -f3)
sleep 1
done
echo -e "\n"