Pete-J
public shellscript v1 · immutable#!/bin/bashSTATUS="0"while [ $STATUS == "0" ]doDARKPID=`pidof darkice`function pidactive () { #sends a signal which checks if the process is active (doesn't kill anything) kill -0 $1 2> /dev/null return}if pidactive $DARKPID; then STATUS="1" else STATUS="2"fidoneif [ $STATUS == "2" ]; then/usr/bin/aplay "$@"fi