weorkan on instal,ler
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
||||
set -e # faiulure is not tolerated here
|
||||
## easy to add ids~
|
||||
### CO:1C:6A is phone in bt pair mode
|
||||
vendor_ids=('CO:1C:6A' '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')
|
||||
webhook_file="/home/princesspi/.discord_url"
|
||||
tag_file="/home/princesspi/.discord_tag"
|
||||
username="[DЯΣΛMMΛKΣЯ]"
|
||||
@@ -20,7 +20,7 @@ send_discord_webhook() {
|
||||
|
||||
while true; do #infinite loop
|
||||
# scan for those vendor ids
|
||||
blescan=$(bluetoothctl -t 5 scan on | awk '{print $3}' | grep "${vendor_ids[@]/#/-e }")
|
||||
blescan=$(bluetoothctl -t 60 scan on | awk '{print $3}' | grep "${vendor_ids[@]/#/-e }")
|
||||
if [ -n "$blescan" ]; then
|
||||
# LE detected poweroff to cryptdisk and notify
|
||||
# alert spammmm
|
||||
|
||||
Reference in New Issue
Block a user