Add more commands to PATH

This commit is contained in:
Matthew Grove
2019-04-04 15:12:28 +01:00
parent 8d5474c0b7
commit 16be1890cf
3 changed files with 23 additions and 10 deletions

View File

@@ -1,2 +1,9 @@
#/bin/sh
python3 ~/.bluetooth-proximity-locking/btpl.py [bluetooth address] > /dev/null &
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