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
Matthew Grove f673ea0164 Fix typos
Elif statements wouldn't run, as there were no 'then' statements
2019-04-04 18:10:49 +01:00

12 lines
356 B
Bash

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