Skip to content

Commit

Permalink
Merge pull request Lorys89#3 from Lorys89/test--command
Browse files Browse the repository at this point in the history
update with install  e uninstall command
  • Loading branch information
Lorys89 authored May 3, 2024
2 parents 68faed4 + 1e04fea commit a5cf0c3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 79 deletions.
28 changes: 28 additions & 0 deletions ALCPlugFix-installer-ALC295/install.command
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'
47 changes: 0 additions & 47 deletions ALCPlugFix-installer-ALC295/install.sh

This file was deleted.

14 changes: 14 additions & 0 deletions ALCPlugFix-installer-ALC295/uninstall.command
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'
28 changes: 0 additions & 28 deletions ALCPlugFix-installer-ALC295/uninstall.sh

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ The improvement include:
- Let you choose `alc-verb`
- Enable launching as LauchDaemon
- Bug fix
- Install.sh script with update support
- Uninstall.sh to uninstall ALCPlugFix
- Install.command to install ALCPlugFix
- Uninstall.command to uninstall ALCPlugFix

Install & uninstall
-------
By default it's code command is for Dell Laptop with Realtek ALC295 Audio Codec (layout 33) with Combo Jack, you may need to change that in `fixAudio` function.

Running `sh install.sh` will install to `/user/local/bin`.
Running right click and click open in `install.command`.

Running `sh uninstall.sh` will uninstall to `/user/local/bin`.
Running right click and click open in `uninstall.command`.


Credits
Expand Down

0 comments on commit a5cf0c3

Please sign in to comment.