5 echo -e 'show \n quit' \
10 controllers[++ctrl_count] = controller;
12 /^\t[A-Z][A-Za-z]+:/ {
16 for (i=3; i<=NF; i++) {
18 data[controller, key] = val;
21 # Using the 1st seen controller. Should we select specific instead?
22 power_status = data[controllers[1], "Powered"];
24 if (power_status == "no") {
26 } else if (power_status == "yes") {
29 printf("Unexpected bluetooth power status: %s\n", power_status)\
31 power_status = "ERROR"
34 power_status = "off" # TODO: Perhaps use differentiated marker?
36 printf("%s\n", power_status);
This page took 0.060525 seconds and 4 git commands to generate.