weorkan on instal,ler
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
set -e # faiulure is not tolerated here
|
set -e # faiulure is not tolerated here
|
||||||
## easy to add ids~
|
## easy to add ids~
|
||||||
### CO:1C:6A is phone in bt pair mode
|
### 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"
|
webhook_file="/home/princesspi/.discord_url"
|
||||||
tag_file="/home/princesspi/.discord_tag"
|
tag_file="/home/princesspi/.discord_tag"
|
||||||
username="[DЯΣΛMMΛKΣЯ]"
|
username="[DЯΣΛMMΛKΣЯ]"
|
||||||
@@ -20,7 +20,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=$(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
|
if [ -n "$blescan" ]; then
|
||||||
# LE detected poweroff to cryptdisk and notify
|
# LE detected poweroff to cryptdisk and notify
|
||||||
# alert spammmm
|
# alert spammmm
|
||||||
|
|||||||
Reference in New Issue
Block a user