| Server IP : 192.241.186.36 / Your IP : 216.73.216.164 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
CONF=/etc/default/irqbalance
CONFCONVERT=/etc/default/irqbalance.dpkg-needs-convert
if [ "$1" = "configure" ]; then
if [ "$2" != "" ] && dpkg --compare-versions "$2" lt "1.0.5-1"; then
update-rc.d -f irqbalance remove >/dev/null
fi
# The debian/irqbalance.config file already takes care of
# integrating the old ENABLED and ONESHOT into the loop, but
# we still need this here to preserve any other random
# things the local sysadmin has added to the old /etc/default/irqbalance
# file to be policy compliant.
if [ -e $CONFCONVERT ]; then
# Insert a header to help sysadmin figure out why these things are here.
sed -i '1 i\# This file was modified on irqbalance 1.1.0-2.1 pkg upgrade. Preserved settings:' $CONFCONVERT
# Drop the ENABLED and ONESHOT settings, already handled via debconf.
sed -i -e '/ *ENABLED=.*/d' -e '/ *ONESHOT=.*/d' $CONFCONVERT
# Check if we have anything remaining except comments, if so
# we append the old file to the new one.
# This is to preserve any random things that might have
# been added to the file by the local sysadmin.
if grep -qv '^$\|^\s*#' $CONFCONVERT; then
cat $CONFCONVERT >> $CONF
fi
rm -f $CONFCONVERT
fi
db_get irqbalance/enable
update-rc.d irqbalance defaults >/dev/null
if [ "$RET" = "true" ]; then
update-rc.d irqbalance enable >/dev/null
else
update-rc.d irqbalance disable >/dev/null
fi
db_get irqbalance/oneshot
if [ "$RET" = "true" ]; then
# Modify existing line to enable or add a new one.
if grep -q '^\s*#*\s*IRQBALANCE_ONESHOT\s*=' $CONF ; then
sed -i 's/^\s*#*\s*IRQBALANCE_ONESHOT\s*=.*/IRQBALANCE_ONESHOT=yes/' $CONF
else
# Disable by commenting any existing line
# (or ignore relying on default disabled).
sed -i 's/^\s*IRQBALANCE_ONESHOT\s*=/#IRQBALANCE_ONESHOT=/' $CONF
fi
else
sed -i 's/^\s*IRQBALANCE_ONESHOT=/#IRQBALANCE_ONESHOT=/' $CONF
fi
db_stop
fi
# Automatically added by dh_systemd_enable/11.1.6ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if deb-systemd-helper debian-installed 'irqbalance.service'; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask 'irqbalance.service' >/dev/null || true
if deb-systemd-helper --quiet was-enabled 'irqbalance.service'; then
# Create new symlinks, if any.
deb-systemd-helper enable 'irqbalance.service' >/dev/null || true
fi
fi
# 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 'irqbalance.service' >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_installdeb/11.1.6ubuntu2
dpkg-maintscript-helper rm_conffile /etc/init/irqbalance.conf 1.2.0-0.1~ -- "$@"
# End automatically added section
# Automatically added by dh_installinit/11.1.6ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.d/irqbalance" ]; then
update-rc.d irqbalance defaults >/dev/null
invoke-rc.d irqbalance start || exit 1
fi
fi
# End automatically added section