25a26
> CMD_IPERF3="/usr/local/bin/iperf3 -s"
105a107,110
> iperf3)
> shift
> exec ${CMD_IPERF3} "${@}"
> ;;
128c133
< echo
---
> echo " 14) iperf3 server"
177a183,185
> ;;
> 14)
> ${CMD_IPERF3}
Is this possible, or don't the installers for these plugins have access to the systems innards?
#!/bin/bash
upsstatus=$(upsc CP1500AVRLCD3@localhost 2>&1 | grep "ups.status:" | sed 's/^.*: //g')
echo "UPS Status : $upsstatus"
if [ "$upsstatus" = "FSD OL" ]; then
# echo "Restarting NUT daemon"
/etc/init.d/nut-server restart
else
echo "Doing nothing"
fi