This repository has been archived on 2025-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bluetooth-proximity-locker/btpl.sh
2019-04-04 15:18:26 +01:00

11 lines
339 B
Bash

#/bin/sh
if [ $# \< 2 ]
then
python3 ~/.bluetooth-proximity-locking/btpl.py [bluetooth address] > /dev/null &
elif [ "$1" = "-r" ] || [ "$1" = "--run" ]
python3 ~/.bluetooth-proximity-locking/btpl.py [bluetooth address] > /dev/null &
elif [ "$1" = "-s" ] || [ "$1" = "--stop" ]
pkill ~/.bluetooth-proximity-locking/btpl.py
fi