Skip to content

Commit

Permalink
fixed another error in the regex
Browse files Browse the repository at this point in the history
  • Loading branch information
eizedev committed Jan 19, 2021
1 parent 3f90fdd commit f2498a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start-stop-status
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ start_airconnect() {
# start_airconnect_on_ip "1.2.3.4" || true
# return 0

interfaces=$(/sbin/ifconfig -a | grep 'Ethernet' -A 1 | grep -E 'inet (addr:)?(192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.|17\.0\.(6[4-9]|[7-9][0-9]|1[0-2][0-7])\.)' -B 1 | grep 'Ethernet' | grep -v "lbr0" | grep -v "docker" | cut -d ' ' -f 1)
interfaces=$(/sbin/ifconfig -a | grep 'Ethernet' -A 1 | grep -E 'inet (addr:)?(192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.|17\.0\.(6[4-9]|[7-9][0-9]|1([0-1][0-9]|2[0-7]))\.)' -B 1 | grep 'Ethernet' | grep -v "lbr0" | grep -v "docker" | cut -d ' ' -f 1)
if [ -z "$interfaces" ]; then
echo "[$(date +'%T')] Failed to get local Ethernet interfaces" >>"$LOG"
echo "[$(date +'%T')] Failed to get local Ethernet interfaces" >>"$SYNOPKG_TEMP_LOGFILE"
Expand Down

0 comments on commit f2498a3

Please sign in to comment.