#!/bin/bash

if [ -x /usr/bin/curl ]; then
    /usr/bin/curl http://localhost:${port}/admin/networkDown?type=$1 &
else
    wget -qO- http://localhost:${port}/admin/networkDown?type=$1 &> /dev/null &
fi
exit 0

