-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unrud
committed
May 8, 2016
1 parent
9657e22
commit 432d60c
Showing
6 changed files
with
12 additions
and
7 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
This directory contains setup examples. | ||
This directory contains setup examples. The script should be installed to | ||
`/usr/local/sbin/init-headphone`. |
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,4 +1,5 @@ | ||
This directory contains configuration for **GRUB** to add required kernel | ||
parameters. | ||
|
||
Copy the file `init-headphone.cfg` to `/etc/default/grub.d`. | ||
Copy the file `init-headphone.cfg` to `/etc/default/grub.d` and run | ||
`update-grub`. |
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,11 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -x /usr/sbin/init-headphone ]; then | ||
if [ ! -x /usr/local/sbin/init-headphone ]; then | ||
exit 0 | ||
fi | ||
|
||
case $1 in | ||
resume|thaw) | ||
/usr/sbin/init-headphone | ||
/usr/local/sbin/init-headphone | ||
;; | ||
esac |
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,4 +1,5 @@ | ||
This directory contains a configuration for **systemd** to run the script | ||
on boot and after suspend and hibernation. | ||
|
||
Copy the file `init-headphone.service` to `/etc/systemd/system`. | ||
Copy the file `init-headphone.service` to `/etc/systemd/system` and run | ||
`systemctl enable init-headphone`. |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
description "Initialize headphone amplifier found in some Clevo laptops" | ||
|
||
start on runlevel [2345] | ||
exec /usr/sbin/init-headphone | ||
|
||
exec /usr/local/sbin/init-headphone |