diff --git a/disable-c6/run b/disable-c6/run new file mode 100644 index 0000000..d5f5727 --- /dev/null +++ b/disable-c6/run @@ -0,0 +1,17 @@ +#!/bin/sh + +# msr must be running for this to work +# check if running +if test ! lsmod | grep -wq "msr"; then + # if it's not running then start it + modprobe msr +fi + +zenstates --c6-disable + +# pause only if zenstates executes successfully +# if it was unsuccessful then runit will attempt to execute this again +if [ $? -eq 0 ]; then + exec pause +fi +