diff options
Diffstat (limited to 'auto-cpufreq.install')
-rw-r--r-- | auto-cpufreq.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/auto-cpufreq.install b/auto-cpufreq.install new file mode 100644 index 000000000000..7a0da8434622 --- /dev/null +++ b/auto-cpufreq.install @@ -0,0 +1,27 @@ +post_install() { + # This is needed on SELinux enabled systems (see also ConditionPathExists in .service) + touch /var/log/auto-cpufreq.log + + echo '' + echo 'Enable auto-cpufreq daemon service at boot:' + echo 'systemctl enable --now auto-cpufreq' + echo '' + echo 'To view live log, run:' + echo 'auto-cpufreq --log' + echo '' +} + +post_upgrade() { + echo '' + echo 'Reload systemd manager configuration:' + echo 'systemctl daemon-reload' + echo '' + echo 'Restart auto-cpufreq daemon service:' + echo 'systemctl restart auto-cpufreq' + echo '' +} + +post_remove() { + # Remove auto-cpufreq log file + rm /var/log/auto-cpufreq.log +} |