forked from Lorys89/ALCPlugFix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Lorys89#3 from Lorys89/test--command
update with install e uninstall command
- Loading branch information
Showing
5 changed files
with
46 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
|
||
path=${0%/*} | ||
sudo spctl --master-disable | ||
sudo mkdir /usr/local/bin | ||
sudo cp -a "$path/ALCPlugFix.sh" /usr/local/bin | ||
sudo chmod 755 /usr/local/bin/ALCPlugFix.sh | ||
sudo chown root:wheel /usr/local/bin/ALCPlugFix.sh | ||
sudo cp -a "$path/ALCHeadphoneStaticFix.sh" /usr/local/bin | ||
sudo chmod 755 /usr/local/bin/ALCHeadphoneStaticFix.sh | ||
sudo chown root:wheel /usr/local/bin/ALCHeadphoneStaticFix.sh | ||
sudo cp -a "$path/ALCRebootFromWinFix.sh" /usr/local/bin | ||
sudo chmod 755 /usr/local/bin/ALCRebootFromWinFix.sh | ||
sudo chown root:wheel /usr/local/bin/ALCRebootFromWinFix.sh | ||
sudo cp -a "$path/ALCPlugFix" /usr/local/bin | ||
sudo chmod 755 /usr/local/bin/ALCPlugFix | ||
sudo chown root:wheel /usr/local/bin/ALCPlugFix | ||
sudo cp -a "$path/alc-verb" /usr/local/bin | ||
sudo chmod 755 /usr/local/bin/alc-verb | ||
sudo chown root:wheel /usr/local/bin/alc-verb | ||
sudo cp -a "$path/ALCPlugFix.plist" /Library/LaunchAgents/ | ||
sudo chmod 644 /Library/LaunchAgents/ALCPlugFix.plist | ||
sudo chown root:wheel /Library/LaunchAgents/ALCPlugFix.plist | ||
sudo launchctl load /Library/LaunchAgents/ALCPlugFix.plist | ||
|
||
echo 'install the ALCPlugFix daemon complete!' | ||
bash read -p 'Press any key to exit' |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
|
||
path=${0%/*} | ||
sudo launchctl remove /Library/LaunchAgents/ALCPlugFix.plist | ||
sudo rm -rf /Library/LaunchAgents/ALCPlugFix.plist | ||
sudo rm -rf /usr/local/bin/ALCPlugFix | ||
sudo rm -rf /usr/local/bin/ALCPlugFix.sh | ||
sudo rm -rf /usr/local/bin/ALCHeadphoneStaticFix.sh | ||
sudo rm -rf /usr/local/bin/ALCRebootFromWinFix.sh | ||
sudo rm -rf /usr/local/bin/alc-verb | ||
|
||
echo 'Uninstall the ALCPlugFix daemon complete!' | ||
bash read -p 'Press any key to exit' |
This file was deleted.
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