diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-19 10:51:46 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-19 10:51:46 -0800 |
| commit | 191d204674168d15a97277ba23098d6daf774dad (patch) | |
| tree | f5adb6a698b516b955dba6d6d0612eee46a20b1e /ext | |
| parent | 4ddf97be4e497da1a091fb9945734134cf58165b (diff) | |
| download | infinitytier-191d204674168d15a97277ba23098d6daf774dad.tar.gz infinitytier-191d204674168d15a97277ba23098d6daf774dad.zip | |
Mac uninstall script fixes.
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/installfiles/mac/uninstall.sh | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/ext/installfiles/mac/uninstall.sh b/ext/installfiles/mac/uninstall.sh index b9563a11..626db73f 100755 --- a/ext/installfiles/mac/uninstall.sh +++ b/ext/installfiles/mac/uninstall.sh @@ -10,11 +10,20 @@ if [ "$UID" -ne 0 ]; then exit 1 fi -echo +# Run with -q to be quieter and run without delay +quickAndQuiet=0 +if [ "$1" = "-q" ]; then + quickAndQuiet=1 + echo() { :; } +fi -echo "This will uninstall ZeroTier One, hit CTRL+C to abort." -echo "Waiting 5 seconds..." -sleep 5 +echo + +if [ $quickAndQuiet -eq 0 ]; then + echo "This will uninstall ZeroTier One, hit CTRL+C to abort." + echo "Waiting 5 seconds..." + sleep 5 +fi echo "Unloading and removing LaunchDaemons item..." launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist @@ -27,11 +36,11 @@ killall -KILL zerotier-one >>/dev/null 2>&1 sleep 1 echo "Unloading kernel extension..." -kextunload "$ztpath/tap.kext" +kextunload "$ztpath/tap.kext" >>/dev/null 2>&1 echo "Erasing UI app, binary, and support files..." -cd $ztpath -rm -rfv "$ztapp" zerotier-one *.persist authtoken.secret identity.public *.log *.pid *.kext *.sh +cd "$ztpath" +rm -rfv "$ztapp" zerotier-one *.persist authtoken.secret identity.public *.log *.pid *.kext *.sh networks.d updates.d shutdownIfUnreadable echo "Done." echo |
