-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
133 changed files
with
5,161 additions
and
202 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
COMMON_DEFINED=yes | ||
|
||
KEXT_ID=com.protech.NoSleep | ||
KEXT_PATH=/System/Library/Extensions/NoSleep.kext | ||
PERF_PATH=/Library/PreferencePanes/NoSleep.prefPane | ||
HELPER_PATH=/Applications/Utilities/NoSleep.app | ||
|
||
USER_SUDO_CMD="" | ||
|
||
if [ "$SUDO_USER" != "" ]; then | ||
USER_SUDO_CMD="sudo -u $SUDO_USER" | ||
else if [ "$USER" != "" ]; then | ||
USER_SUDO_CMD="sudo -u $USER" | ||
fi | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#!/bin/sh | ||
|
||
KEXT_PATH=/System/Library/Extensions/NoSleep.kext | ||
HELPER_PATH=/Applications/Utilities/NoSleepHelper.app | ||
if [ "$COMMON_DEFINED" = "" ]; then | ||
source `dirname "$0"`/Common.sh | ||
fi | ||
|
||
sudo kextload "$KEXT_PATH" | ||
|
||
#defaults write loginwindow AutoLaunchedApplicationDictionary -array-add \ | ||
#'<dict><key>Hide</key><false/><key>Path</key><string>'$HELPER_PATH'</string></dict>' | ||
|
||
open "$HELPER_PATH" --args --register-loginitem | ||
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{Path="$HELPER_PATH";}' | ||
open $HELPER_PATH | ||
|
||
echo "Done" |
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,7 +1,7 @@ | ||
#!/bin/sh | ||
|
||
echo "Enter your password" | ||
sudo echo | ||
f=`dirname "$0"` | ||
|
||
./Uninstall_1.2.1.sh | ||
./Uninstall_1.3.0.sh | ||
$f/./Uninstall_1.2.1.sh | ||
$f/./Uninstall_1.3.0.sh | ||
$f/./Uninstall_1.3.1.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
|
||
echo "Uninstalling 1.3.1" | ||
sudo true | ||
|
||
if [ "$COMMON_DEFINED" = "" ]; then | ||
source `dirname "$0"`/Common.sh | ||
fi | ||
|
||
if [ -e "$HELPER_PATH" ]; then | ||
echo "Removing NoSleep.app..." | ||
ps aux|grep NoSleep.app|awk '{print $2}'|xargs kill &> /dev/null | ||
sudo rm -rf "$HELPER_PATH" | ||
fi | ||
|
||
if kextstat | grep "$KEXT_ID" > /dev/null; then | ||
echo "Unloading kernel extension..." | ||
sudo kextunload -b "$KEXT_ID" | ||
fi | ||
|
||
if [ -e "$KEXT_PATH" ]; then | ||
echo "Removing kernel extension..." | ||
sudo rm -rf "$KEXT_PATH" | ||
fi | ||
|
||
if [ -e "$PERF_PATH" ]; then | ||
echo "Removing preferences plug-in..." | ||
sudo rm -rf "$PERF_PATH" | ||
fi | ||
|
||
sudo pkgutil --forget "com.protech.pkg.NoSleep" &> /dev/null | ||
|
||
echo "Done" |
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
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
Binary file not shown.
Binary file not shown.
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
Oops, something went wrong.