First test
[fresonbot.git] / bashScripts / enable_encoder_slots.sh
1 #!/bin/bash
2
3 left_slot="bone_eqep1"
4 right_slot="bone_eqep2b"
5
6 if grep -q  bone_eqep1 /sys/devices/bone_capemgr.9/slots; then
7     echo "left slot already enabled"
8 else
9     echo bone_eqep1 > /sys/devices/bone_capemgr.9/slots
10 fi
11
12 if grep -q  bone_eqep2b /sys/devices/bone_capemgr.9/slots; then
13     echo "right slot already enabled"
14 else
15     echo bone_eqep2b > /sys/devices/bone_capemgr.9/slots
16 fi
17