Skip to content

Instantly share code, notes, and snippets.

@samcv
Created October 16, 2018 21:36
Show Gist options
  • Save samcv/0b6a915aadcddc0e19640c20d9dd3164 to your computer and use it in GitHub Desktop.
Save samcv/0b6a915aadcddc0e19640c20d9dd3164 to your computer and use it in GitHub Desktop.
#!/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