3 if [ "$TMPFS" == "" ]; then
9 # ------------------------------------- get here after reboot --------------------
11 if [ ! -s "mode" ]; then
15 buttonHold=$(( $(./fast-gpio mread $KBD_MASK) ))
19 "$KBD_MIC") # ----------------------- leader --------------------------
21 playRoboMessage "Leader mode activating"
23 playRoboMessage "Leader mode activated"
26 # "$(( $KBD_MIC ^ $KBD_WIFI ))")
27 "$KBD_WIFI") # ----------------------- service --------------------------
29 playRoboMessage "Service mode activating"
32 playRoboMessage "Service mode activated"
33 playRoboMessage "Keep holding WiFi button to check for complete firmware upgrade avaliability."
36 *) # ----------------------- follower --------------------------
40 if [ "$MODE" != "l" ]; then
42 myLog "Follower mode activating"
44 myLog "Follower mode activated"
46 myLog "Leader mode remain"