Remove package options (#304)

This commit is contained in:
bobslept 2021-12-08 21:07:50 +01:00 committed by GitHub
parent 342e5fab86
commit b999f49dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 41 deletions

View File

@ -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