X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_parse_bluetoothctl_show;h=0d56853a219de40c21a6b96e3ba5bb1b8f6a311f;hb=75b23ff8a814c76a4fa0fa12a40e6a929beec695;hp=ed1e228d107f8ad9b01ee9e445ba9ee5c17d3295;hpb=7a2b16ba7175f07e0ae54e0527475c75e8cc1210;p=khatus.git diff --git a/bin/khatus_parse_bluetoothctl_show b/bin/khatus_parse_bluetoothctl_show index ed1e228..0d56853 100755 --- a/bin/khatus_parse_bluetoothctl_show +++ b/bin/khatus_parse_bluetoothctl_show @@ -1,5 +1,10 @@ #! /usr/bin/awk -f +BEGIN { + OFS = msg_fs ? msg_fs : "|" + Kfs = key_fs ? key_fs : ":" +} + /^Controller / { controller = $2 controllers[++ctrl_count] = controller @@ -28,7 +33,7 @@ END { } else { show = "n/a" } - print(show) + print("power_status", show) } function print_error(msg) {