#!/bin/bash

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