This commit is contained in:
2026-04-23 03:17:42 -06:00
parent e4d2fcfe64
commit 3bb23b0511
+1 -1
View File
@@ -21,7 +21,7 @@ send_discord_webhook() {
while true; do #infinite loop while true; do #infinite loop
# scan for those vendor ids # scan for those vendor ids
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/-e }") blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep -q ${vendor_ids[@]/#/-e }")
if [ -n "$blescan" ]; then if [ -n "$blescan" ]; then
# LE detected poweroff to cryptdisk and notify # LE detected poweroff to cryptdisk and notify
# alert spammmm # alert spammmm