summarylogtreecommitdiffstats
path: root/corefreq-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'corefreq-git.install')
-rw-r--r--corefreq-git.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/corefreq-git.install b/corefreq-git.install
new file mode 100644
index 000000000000..b8872789b653
--- /dev/null
+++ b/corefreq-git.install
@@ -0,0 +1,17 @@
+post_install() {
+ dkms install corefreq/${1%%-*}
+ echo 'modprobe or insmod the kernel module intelfreq.ko prior to start corefreqd.service and'
+ echo 'use systemd to start corefreqd.service prior to running corefreq-cli'
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove corefreq/${1%%-*} --all
+}