summarylogtreecommitdiffstats
path: root/phc-intel.sh
diff options
context:
space:
mode:
authordreieck2023-02-21 13:21:44 +0100
committerdreieck2023-02-21 13:21:44 +0100
commitae9ae3fec6fb16281aa1290da77bcfc31fef9226 (patch)
treeef7543e7963f005de411678e4011dc0b4b5a055e /phc-intel.sh
parentf917c448d277fdc0db723c8eab3b31a279ae130d (diff)
downloadaur-ae9ae3fec6fb16281aa1290da77bcfc31fef9226.tar.gz
Sanitised `phc-intel.sh`, while this, did a version bump due to the changes carried out previously.
Changed tab to spaces in the `phc-intel.sleep*`-files.
Diffstat (limited to 'phc-intel.sh')
-rwxr-xr-xphc-intel.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/phc-intel.sh b/phc-intel.sh
index 7bc228130aba..01236845c348 100755
--- a/phc-intel.sh
+++ b/phc-intel.sh
@@ -33,7 +33,8 @@ check_kernel_cmdline() {
for i in $(< /proc/cmdline); do
if [ $i = nophc ]; then
errmsg "=> 'nophc' kernel option set, not setting PHC VIDs."
- errmsg " Use '$0 set' to override."
+ errmsg " Use '$0 force-set' to override."
+ exit 0
return 1
fi
done
@@ -78,11 +79,19 @@ case "$1" in
;;
set)
+ "$0" start
+ ;;
+
+ force-set)
check_conf_and_set "$@"
;;
+ reset)
+ "$0" stop
+ ;;
+
*)
- echo "usage: $0 {start|stop|status|set|reset}"
+ echo "usage: $0 {start|stop|status|set|force-set|reset}"
;;
esac