-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use only one file
run
for everything.
- Loading branch information
1 parent
ab8a9a7
commit f9c836f
Showing
11 changed files
with
90 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
#!/bin/bash | ||
stdbuf -oL python vpn_indicator.py > indicator.log & | ||
sleep 0.5 | ||
sudo python vpnproxy_tui.py | ||
|
||
# allow running from anywhere | ||
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
cd "$(dirname "$(realpath "$0")")"; | ||
|
||
type=$1 | ||
arg=$2 | ||
|
||
if [ "$type" == "cli" ]; then | ||
sudo python vpnproxy_cli.py $arg | ||
else | ||
if [ "$type" != "tui" ]; then | ||
arg=$type | ||
fi | ||
|
||
# check if this os is *ubuntu and launch vpn_indicator | ||
os_id=`lsb_release -i` | ||
target="buntu" | ||
test "${os_id#*$target}" != "$os_id" && stdbuf -oL python vpn_indicator.py > logs/indicator.log & | ||
|
||
sleep 0.2 | ||
sudo python vpnproxy_tui.py $arg | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters