Procházet zdrojové kódy

Reset the fan controller now that it subscribes to state

Zachary Kotlarek před 13 roky
rodič
revize
0883bdfb35
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      dmx/reset.sh

+ 2 - 1
dmx/reset.sh

@@ -2,8 +2,9 @@
 
 
 ROPE="`ps -A -o pid=,command= | grep -v grep | grep rope.pl | awk '{print $1}'`"
 ROPE="`ps -A -o pid=,command= | grep -v grep | grep rope.pl | awk '{print $1}'`"
 LEDS="`ps -A -o pid=,command= | grep -v grep | grep leds.pl | awk '{print $1}'`"
 LEDS="`ps -A -o pid=,command= | grep -v grep | grep leds.pl | awk '{print $1}'`"
+FAN="`ps -A -o pid=,command= | grep -v grep | grep fan.pl | awk '{print $1}'`"
 
 
-for i in $ROPE $LEDS; do
+for i in $ROPE $LEDS $FAN; do
 	if [ -n "${i}" ]; then
 	if [ -n "${i}" ]; then
 		kill $i
 		kill $i
 	fi
 	fi