Browse Source

Add config file to load msr at boot

Fix in debian packaging for loading msr at boot
master 0.1-2
Marc Poulhiès 2 years ago
parent
commit
2647c4c005
  1. 2
      debian/.debhelper/generated/zenstates/installed-by-dh_install
  2. 0
      debian/.debhelper/generated/zenstates/installed-by-dh_installdocs
  3. 17
      debian/.debhelper/generated/zenstates/postinst.service
  4. 5
      debian/.debhelper/generated/zenstates/prerm.service
  5. 6
      debian/changelog
  6. 1
      debian/install
  7. 2
      debian/zenstates.conf
  8. 4
      debian/zenstates.postrm.debhelper

2
debian/.debhelper/generated/zenstates/installed-by-dh_install vendored

@ -1,2 +0,0 @@
./zenstates.py
./zenstates.service

0
debian/.debhelper/generated/zenstates/installed-by-dh_installdocs vendored

17
debian/.debhelper/generated/zenstates/postinst.service vendored

@ -1,17 +0,0 @@
# Automatically added by dh_installsystemd/13
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask 'zenstates.service' >/dev/null || true
# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled 'zenstates.service'; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper enable 'zenstates.service' >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state 'zenstates.service' >/dev/null || true
fi
fi
# End automatically added section

5
debian/.debhelper/generated/zenstates/prerm.service vendored

@ -1,5 +0,0 @@
# Automatically added by dh_installsystemd/13
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop 'zenstates.service' >/dev/null || true
fi
# End automatically added section

6
debian/changelog vendored

@ -1,3 +1,9 @@
zenstates (0.1-2) UNRELEASED; urgency=medium
* Add config file for loading msr at boot
-- Marc <dkm@kataplop.net> Fri, 08 May 2020 15:53:48 +0200
zenstates (0.1-1) unstable; urgency=medium
* Initial release

1
debian/install vendored

@ -1,2 +1,3 @@
zenstates.py /usr/sbin/
zenstates.service /lib/systemd/system/
debian/zenstates.conf /etc/modules-load.d/

2
debian/zenstates.conf vendored

@ -0,0 +1,2 @@
## load msr module for being able to disable C6 state on Ryzen processor
msr

4
debian/zenstates.postrm.debhelper vendored

@ -1,9 +1,9 @@
# Automatically added by dh_installsystemd/13
# Automatically added by dh_systemd_start/13
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installsystemd/13
# Automatically added by dh_systemd_enable/13
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask 'zenstates.service' >/dev/null || true

Loading…
Cancel
Save