]> rtime.felk.cvut.cz Git - shark/motorek-5200.git/blob - motor-reg.sh
Add load command to the boot script required for newer novaboot version.
[shark/motorek-5200.git] / motor-reg.sh
1 A=/sys/devices/motorek.1/action
2 P=/sys/devices/motorek.1/position
3 ref=${1:-1000}
4 while true; do 
5         p=$(cat $P); 
6         e=$((ref-p));
7         echo $((e/2)) > $A; 
8         echo $p; 
9         sleep 0.01; 
10 done