blob: b5285233fbb0b64ed5481e3189b9a4134e074653 [file] [log] [blame]
#!/bin/sh
. /etc/utils.sh
GHN_DIR="/tmp/ghn"
usage() {
echo "Usage:"
echo
echo " $0 $1"
echo
echo " A wrapper for 'read-ghn-node' when querying the local G.hn node "
echo " Grabs a single paramater and prints the value. "
echo
exit 99
}
if ! has-ghn; then
exit 0
fi
if [ "$#" -ne "1" ]; then
usage "$1"
fi
GHN_MAC_ADDR=$(cat "$GHN_DIR"/mac_addr)
read-ghn-node "$GHN_MAC_ADDR" "$1"