diff --git a/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh b/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh index db1e889..d01e4a0 100644 --- a/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh +++ b/implementations/BASH_Script_Linux/DREAMMAKER-DEMO.sh @@ -4,7 +4,8 @@ ### CO:1C:6A is phone in bt pair mode ### 71:D9:79 is common for testyin ### O1 is common and easier -vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A') +# vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03') +vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99' '0A' '0B' '0C' '0D' '0E' '0F' 'AB' 'C0') webhook_file="/usr/share/DREAMMAKER/.discord_url" tag_file="/usr/share/DREAMMAKER/.discord_tag" username='[DЯΣΛMMΛKΣЯ]' @@ -22,7 +23,6 @@ send_discord_webhook() { while true; do #infinite loop # scan for those vendor ids - ## eval "vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99'); while true; do bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^} 2>/dev/null; done" blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}" # -n is if length of string is non zero if [ -n "$blescan" ]; then