thiiiink i fixed both sh
This commit is contained in:
@@ -22,8 +22,9 @@ send_discord_webhook() {
|
||||
|
||||
while true; do #infinite loop
|
||||
# scan for those vendor ids
|
||||
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/-e }")
|
||||
|
||||
## 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
|
||||
# LE detected poweroff to cryptdisk and notify
|
||||
# alert spammmm
|
||||
|
||||
Reference in New Issue
Block a user