/
var
/
lib
/
dpkg
/
info
/
File Upload :
llllll
Current File: //var/lib/dpkg/info/tuned.postinst
#!/bin/sh set -e # Automatically added by dh_python3: if which py3compile >/dev/null 2>&1; then py3compile -p tuned fi if which pypy3compile >/dev/null 2>&1; then pypy3compile -p tuned || true fi if which py3compile >/dev/null 2>&1; then py3compile -p tuned /usr/lib/tuned fi if which pypy3compile >/dev/null 2>&1; then pypy3compile -p tuned /usr/lib/tuned || true fi # End automatically added section # Automatically added by dh_systemd_enable/11.3.2ubuntu1 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 'tuned.service' >/dev/null || true # was-enabled defaults to true, so new installations run enable. if deb-systemd-helper --quiet was-enabled 'tuned.service'; then # Enables the unit on first installation, creates new # symlinks on upgrades if the unit file has changed. deb-systemd-helper enable 'tuned.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 'tuned.service' >/dev/null || true fi fi # End automatically added section # Automatically added by dh_installinit/11.3.2ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then # In case this system is running systemd, we need to ensure that all # necessary tmpfiles (if any) are created before starting. if [ -d /run/systemd/system ] ; then systemd-tmpfiles --create tuned.conf >/dev/null || true fi fi # End automatically added section # Automatically added by dh_systemd_start/11.3.2ubuntu1 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true deb-systemd-invoke start 'tuned.service' >/dev/null || true fi fi # End automatically added section
Copyright ©2k19 -
Hexid
|
Tex7ure