We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27019c4 commit 2c51586Copy full SHA for 2c51586
share/pot/stop.sh
@@ -61,9 +61,13 @@ _js_stop()
61
_ipaddr="$_i"
62
fi
63
if potnet ip4check -H "$_ipaddr" ; then
64
- ifconfig "${_nic}" inet "$_ipaddr" -alias
+ if ifconfig "${_nic}" | grep -q "inet $_ipaddr " ; then
65
+ ifconfig "${_nic}" inet "$_ipaddr" -alias
66
+ fi
67
else
- ifconfig "${_nic}" inet6 "$_ipaddr" -alias
68
+ if ifconfig "${_nic}" | grep -q "inet6 $_ipaddr " ; then
69
+ ifconfig "${_nic}" inet6 "$_ipaddr" -alias
70
71
72
done
73
0 commit comments