deprecate unused scripts

Signed-off-by: Ferit Yiğit BALABAN <fyb@fybx.dev>
This commit is contained in:
2024-01-15 22:32:23 +03:00
parent b4565d76bb
commit 1dddc37e34
12 changed files with 22 additions and 0 deletions

23
deprecated/keyboard Executable file
View File

@@ -0,0 +1,23 @@
#$/bin/bash
code=0
let counter=1
dt=$(date +'%d/%m/%y-%H.%M.%S')
function connect() {
bluetoothctl connect F4:73:35:67:32:0A
code=$?
}
while (( counter <= 5 ))
do
connect
if [ $code -eq 0 ]; then
echo "[$dt] Connected to keyboard" >> /home/ferit/navi.log
break
else
echo "[$dt] Couldn't connect to keyboard ($counter/5)" >> /home/ferit/navi.log
fi
sleep 5
((counter++))
done
exit 0