From b999f49dba85b55c3e548cb1a1f95d535d0190ed Mon Sep 17 00:00:00 2001 From: bobslept <38557801+bobslept@users.noreply.github.com> Date: Wed, 8 Dec 2021 21:07:50 +0100 Subject: [PATCH] Remove package options (#304) --- scripts/cpufreqctl.sh | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/scripts/cpufreqctl.sh b/scripts/cpufreqctl.sh index 63a2b5b..eb94599 100755 --- a/scripts/cpufreqctl.sh +++ b/scripts/cpufreqctl.sh @@ -63,12 +63,6 @@ function help () { echo " --min-perf Current min_perf_pct options" echo " --max-perf Current max_perf_pct options" echo "" - echo "Package options" - echo " --install Install extra components for all users" - echo " --uninstall Uninstall extra components for all users" - echo " --update-fonts Update font cache" - echo " --reset Reset to defaults for current user" - echo "" echo "Events options" echo " --throttle Get thermal throttle counter" echo " --throttle-event Get kernel thermal throttle events counter" @@ -464,38 +458,3 @@ then echo "$M" exit fi - -if [ $OPTION = "--install" ] -then - echo 'installing helpers...' - cp $0 /usr/bin/ - echo 'installing policy...' - cp $(dirname "$(readlink -f "$0")")/konkor.cpufreq.policy /usr/share/polkit-1/actions/ - echo 'installing fonts...' - mkdir -p /usr/share/fonts/truetype/cpufreq - cp $(dirname "$(readlink -f "$0")")/fonts/cpufreq.ttf /usr/share/fonts/truetype/cpufreq/ - echo "done" - exit -fi -if [ $OPTION = "--update-fonts" ] -then - fc-cache -f - exit -fi -if [ $OPTION = "--uninstall" ] -then - echo 'uninstalling cpufreqctl helper...' - rm /usr/bin/cpufreqctl - echo 'uninstalling policy...' - rm /usr/share/polkit-1/actions/konkor.cpufreq.policy - echo 'uninstalling fonts...' - rm -rf /usr/share/fonts/truetype/cpufreq - echo "done" - exit -fi -if [ $OPTION = "--reset" ] -then - echo 'reset to default values...' - dconf reset -f "/org/gnome/shell/extensions/cpufreq/" - exit -fi