Просмотр исходного кода

Reset the fan controller now that it subscribes to state

Zachary Kotlarek 13 лет назад
Родитель
Сommit
0883bdfb35
1 измененных файлов с 2 добавлено и 1 удалено
  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}'`"
 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
 		kill $i
 	fi