Project

General

Profile

Download (164 Bytes) Statistics
| Branch: | Revision:
96ba0c24 Marc Dequènes (Duck)
#!/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