Created
October 16, 2018 21:36
-
-
Save samcv/0b6a915aadcddc0e19640c20d9dd3164 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env sh | |
ZENSTATES=/home/samantha/bin/zenstates.py | |
if [ "$1" = 'post' ]; then | |
if "$ZENSTATES" --c6-enable; then | |
echo "Enabled c6 cpu state" | |
else | |
echo "Failed to enable c6 cpu state" | |
fi | |
else | |
if "$ZENSTATES" --c6-disable; then | |
echo "Disabled c6 cpu state" | |
else | |
echo "Failed to disable c6 cpu state" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment