Project

General

Profile

Download (164 Bytes) Statistics
| Branch: | Revision:
#!/bin/sh

UNIT=${1:-noexistent}

STATE=$(tw_cli "${UNIT}" show | grep -E "^u[0-9]+ " | awk '{print $3}')

if [ "${STATE}" = "OK" ]; then
echo 1
else
echo 0
fi
(1-1/14)