saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
1
hprofile/example-profiles/power/default
Normal file
1
hprofile/example-profiles/power/default
Normal file
@@ -0,0 +1 @@
|
||||
AC
|
||||
4
hprofile/example-profiles/power/profiles
Normal file
4
hprofile/example-profiles/power/profiles
Normal file
@@ -0,0 +1,4 @@
|
||||
AC
|
||||
Medium
|
||||
Battery
|
||||
Dynamic
|
||||
22
hprofile/example-profiles/power/ptest
Executable file
22
hprofile/example-profiles/power/ptest
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script should echo only the name of the profile that should be used
|
||||
# It should assume it is called before any other scripts. In particular, it
|
||||
# cannot rely on environment variables set in /etc/profile or elsewhere. The
|
||||
# script may assume it will be run as root.
|
||||
|
||||
profile="AC"
|
||||
|
||||
if test -f /proc/acpi/ac_adapter/AC0/state ; then
|
||||
status="$(cat /proc/acpi/ac_adapter/AC0/state)"
|
||||
case "${status}" in
|
||||
*on-line)
|
||||
profile="AC"
|
||||
;;
|
||||
*off-line)
|
||||
profile="Battery"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo "${profile}"
|
||||
4
hprofile/example-profiles/power/scripts/AC.start
Executable file
4
hprofile/example-profiles/power/scripts/AC.start
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
speedfreq -p performance
|
||||
echo "15" > /proc/acpi/asus/brn
|
||||
4
hprofile/example-profiles/power/scripts/Battery.start
Executable file
4
hprofile/example-profiles/power/scripts/Battery.start
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
speedfreq -p powersave
|
||||
echo "6" > /proc/acpi/asus/brn
|
||||
4
hprofile/example-profiles/power/scripts/Dynamic.start
Executable file
4
hprofile/example-profiles/power/scripts/Dynamic.start
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
speedfreq -p dynamic
|
||||
|
||||
4
hprofile/example-profiles/power/scripts/Medium.start
Executable file
4
hprofile/example-profiles/power/scripts/Medium.start
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
speedfreq -p 1000
|
||||
echo "11" > /proc/acpi/asus/brn
|
||||
Reference in New Issue
Block a user