diff options
Diffstat (limited to 'rapid-tunneling-status')
-rwxr-xr-x | rapid-tunneling-status | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rapid-tunneling-status b/rapid-tunneling-status index e270ea1..8040616 100755 --- a/rapid-tunneling-status +++ b/rapid-tunneling-status @@ -1,5 +1,7 @@ #!/bin/sh +base_dir="$HOME/.rapid-tunneling" + if [ "$1" = "--help" ]; then echo "Usage: $0 [-p] [<pid-file>]" 1>&2 echo " -p: Print only pid of SSH process (if connecting or connected)." 1>&2 @@ -18,7 +20,7 @@ elif [ "$1" = "-s" ]; then shift fi pidfile="$1" -[ -z "$pidfile" ] && pidfile="$HOME/pid" +[ -z "$pidfile" ] && pidfile="$base_dir/pid" connected() { |