diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-10-03 21:34:07 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-10-03 21:34:07 +0000 |
commit | 24bbb7371c52aa93d676104b36c35be87ef5c8b6 (patch) | |
tree | 8e79b9dd494350be559a3aaff00dc85438c2735a /rapid-tunneling-status | |
parent | ec76e19f80c852f3e351d0e333b7cc3aed074d2a (diff) |
place files under $HOME/.rapid-tunneling
Switch to using $HOME/.rapid-tunneling as the base directory for files
we need to keep (instead of simply using $HOME).
git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@8399 283159da-0705-0410-b60c-f2062b4bb6ad
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() { |