diff --git a/MAC/APL/APLCommon/src/swlevel b/MAC/APL/APLCommon/src/swlevel index 785ffbaf0d2b4643d0cbbc31f0c737af550349e2..cb601b78b9a84b97c91bed89571fe8b146111978 100755 --- a/MAC/APL/APLCommon/src/swlevel +++ b/MAC/APL/APLCommon/src/swlevel @@ -308,7 +308,7 @@ start_prog() fi if [ "$prog" = "TBBDriver" ]; then # Check if RSPDriver is already running; if not, do not start either! - $PIDOF RSPDriver 1>/dev/null 2>&1 + getpid RSPDriver 1>/dev/null 2>&1 if [ $? -ne 0 ]; then echo "RSPDriver not running, so not starting TBBDriver either" exit @@ -548,7 +548,7 @@ goto_level() # set rcumode to 0 (power save) when entering level 1 if [ ${newlevel} -le 1 ]; then if [ ${curlevel} -ge 2 ]; then - $PIDOF RSPDriver 1>/dev/null 2>&1 + getpid RSPDriver 1>/dev/null 2>&1 if [ $? -eq 0 ]; then status_1=`( timeout 2 $BINDIR/rspctl --version | grep "0.0" ) >& /dev/null; echo $?` status_2=`( timeout 2 $BINDIR/rspctl --status | grep "PCB" ) >& /dev/null; echo $?`