From 61c88ff076f06418b23f16eec5fdb4eed8ed2f38 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 16:45:39 +0200 Subject: [PATCH 1/9] Add files via upload --- ALCPlugFix-installer-ALC295/install.command | 26 +++++++++++++++++++ ALCPlugFix-installer-ALC295/uninstall.command | 14 ++++++++++ 2 files changed, 40 insertions(+) create mode 100644 ALCPlugFix-installer-ALC295/install.command create mode 100644 ALCPlugFix-installer-ALC295/uninstall.command diff --git a/ALCPlugFix-installer-ALC295/install.command b/ALCPlugFix-installer-ALC295/install.command new file mode 100644 index 0000000..cad9d9f --- /dev/null +++ b/ALCPlugFix-installer-ALC295/install.command @@ -0,0 +1,26 @@ +#!/bin/bash + + +path=${0%/*} +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' diff --git a/ALCPlugFix-installer-ALC295/uninstall.command b/ALCPlugFix-installer-ALC295/uninstall.command new file mode 100644 index 0000000..e28a52d --- /dev/null +++ b/ALCPlugFix-installer-ALC295/uninstall.command @@ -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' From 03eb7a477d2389d6e7a8d586a8ed9e86e8b14525 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 16:45:58 +0200 Subject: [PATCH 2/9] Delete ALCPlugFix-installer-ALC295/uninstall.sh --- ALCPlugFix-installer-ALC295/uninstall.sh | 28 ------------------------ 1 file changed, 28 deletions(-) delete mode 100644 ALCPlugFix-installer-ALC295/uninstall.sh diff --git a/ALCPlugFix-installer-ALC295/uninstall.sh b/ALCPlugFix-installer-ALC295/uninstall.sh deleted file mode 100644 index 1944fec..0000000 --- a/ALCPlugFix-installer-ALC295/uninstall.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -echo "Uninstalling ALCPlugFix. Root user is required." - -echo "Deleting ALCPlugFix program." -sudo rm /usr/local/bin/ALCPlugFix - -echo "Deleting alc-verb program." -sudo rm /usr/local/bin/alc-verb - -echo "Unloading ALCPlugFix launcher." -launchctl unload -w /Library/LaunchAgents/ALCPlugFix.plist - -echo "Removing ALCPlugFix launcher." -launchctl remove ALCPlugFix - -echo "Deleting ALCPlugFix launcher." -sudo rm /Library/LaunchAgents/ALCPlugFix.plist - - -echo "Deleting ALC scripts..." - -sudo rm /usr/local/bin/ALCPlugFix.sh -sudo rm /usr/local/bin/ALCHeadphoneStaticFix.sh -sudo rm /usr/local/bin/ALCRebootFromWinFix.sh - -echo "Uninstallation finished." -exit 0 From 39939fba1a87bcf761a84c21c309418d3730e8c4 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 16:46:09 +0200 Subject: [PATCH 3/9] Delete ALCPlugFix-installer-ALC295/install.sh --- ALCPlugFix-installer-ALC295/install.sh | 47 -------------------------- 1 file changed, 47 deletions(-) delete mode 100644 ALCPlugFix-installer-ALC295/install.sh diff --git a/ALCPlugFix-installer-ALC295/install.sh b/ALCPlugFix-installer-ALC295/install.sh deleted file mode 100644 index a5dcb52..0000000 --- a/ALCPlugFix-installer-ALC295/install.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -echo "Installing ALCPlugFix. Root user is required." - -echo "Copying ALCPlugFix program." - -sudo spctl --master-disable -sudo mkdir /usr/local/bin -sudo cp -f ALCPlugFix /usr/local/bin -sudo chmod 755 /usr/local/bin/ALCPlugFix - - -echo "Copying alc-verb command..." - -sudo cp -f alc-verb /usr/local/bin -sudo chmod 755 /usr/local/bin/alc-verb - - -echo "Copying ALC scripts..." - -sudo cp -f ALCPlugFix.sh /usr/local/bin -sudo chmod 755 /usr/local/bin/ALCPlugFix.sh - -sudo cp -f ALCHeadphoneStaticFix.sh /usr/local/bin -sudo chmod 755 /usr/local/bin/ALCHeadphoneStaticFix.sh - -sudo cp -f ALCRebootFromWinFix.sh /usr/local/bin -sudo chmod 755 /usr/local/bin/ALCRebootFromWinFix.sh - - -echo "Copying ALCPlugFix launcher." - -sudo cp -f ALCPlugFix.plist /Library/LaunchAgents -sudo chmod 644 /Library/LaunchAgents/ALCPlugFix.plist - - -echo "Loading ALCPlugFix launcher." - -launchctl load -w /Library/LaunchAgents/ALCPlugFix.plist - - -echo "ALCPlugFix launcher status: " -launchctl list | grep ALCPlugFix - - -echo "Installation finished." -exit 0 From f349c12f744d42a2afa10a85953919db53b2a693 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 16:52:07 +0200 Subject: [PATCH 4/9] Add files via upload --- ALCPlugFix-installer-ALC295/install.command | 2 +- ALCPlugFix-installer-ALC295/uninstall.command | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ALCPlugFix-installer-ALC295/install.command b/ALCPlugFix-installer-ALC295/install.command index cad9d9f..1e36411 100644 --- a/ALCPlugFix-installer-ALC295/install.command +++ b/ALCPlugFix-installer-ALC295/install.command @@ -23,4 +23,4 @@ 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' +bash read -p 'Press any key to exit' \ No newline at end of file diff --git a/ALCPlugFix-installer-ALC295/uninstall.command b/ALCPlugFix-installer-ALC295/uninstall.command index e28a52d..9be92f1 100644 --- a/ALCPlugFix-installer-ALC295/uninstall.command +++ b/ALCPlugFix-installer-ALC295/uninstall.command @@ -11,4 +11,4 @@ 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' +bash read -p 'Press any key to exit' \ No newline at end of file From d64baf966e5e03eb391539b1f63f4d8a53ae3783 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 16:54:41 +0200 Subject: [PATCH 5/9] update --- ALCPlugFix-installer-ALC295/install.command | 0 ALCPlugFix-installer-ALC295/uninstall.command | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 ALCPlugFix-installer-ALC295/install.command mode change 100644 => 100755 ALCPlugFix-installer-ALC295/uninstall.command diff --git a/ALCPlugFix-installer-ALC295/install.command b/ALCPlugFix-installer-ALC295/install.command old mode 100644 new mode 100755 diff --git a/ALCPlugFix-installer-ALC295/uninstall.command b/ALCPlugFix-installer-ALC295/uninstall.command old mode 100644 new mode 100755 From 0c34ac291d3e746c87835070bb853cb11626a357 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 17:09:56 +0200 Subject: [PATCH 6/9] Update install.command --- ALCPlugFix-installer-ALC295/install.command | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ALCPlugFix-installer-ALC295/install.command b/ALCPlugFix-installer-ALC295/install.command index 1e36411..7fb7650 100755 --- a/ALCPlugFix-installer-ALC295/install.command +++ b/ALCPlugFix-installer-ALC295/install.command @@ -2,6 +2,8 @@ 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 @@ -23,4 +25,4 @@ 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' \ No newline at end of file +bash read -p 'Press any key to exit' From af1de3eb03aa1d2df43eeb7f6eefa87dc2c15ba4 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 17:19:23 +0200 Subject: [PATCH 7/9] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69bd9b9..6420416 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ 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 for `install.command`. -Running `sh uninstall.sh` will uninstall to `/user/local/bin`. +Running right click and click open for `uninstall.command`. Credits From 22116545f42c0da13ace7406a7fc99e4e7722c22 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 17:20:44 +0200 Subject: [PATCH 8/9] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6420416..b0659d6 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ 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 right click and click open for `install.command`. +Running right click and click open in `install.command`. -Running right click and click open for `uninstall.command`. +Running right click and click open in `uninstall.command`. Credits From 1e04fea3b804ad5ca2f08b824763bbc8ef44d06b Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Fri, 3 May 2024 17:22:02 +0200 Subject: [PATCH 9/9] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b0659d6..edf7f55 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ 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 -------