upd: arping replaced to arping from iputils
parent
22537fba35
commit
ddf84365c1
|
@ -1,4 +1,4 @@
|
|||
FROM alpine
|
||||
RUN apk add --no-cache iproute2 arping
|
||||
RUN apk add --no-cache iproute2 iputils
|
||||
ADD bridget.sh /bin/bridget.sh
|
||||
CMD . /bin/bridget.sh
|
||||
|
|
|
@ -81,7 +81,7 @@ unused_gateway() {
|
|||
UNUSED_GATEWAY="$(random_gateway)"
|
||||
fi
|
||||
|
||||
while arping -i "$BRIDGE" -S 0.0.0.0 -c 4 "$UNUSED_GATEWAY" 1>/dev/null; do
|
||||
while arping -f -I "$BRIDGE" -s 0.0.0.0 -c 8 "$UNUSED_GATEWAY" 1>/dev/null; do
|
||||
local UNUSED_GATEWAY="$(random_gateway)"
|
||||
done
|
||||
echo "$UNUSED_GATEWAY"
|
||||
|
|
Loading…
Reference in New Issue