HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, 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_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //proc/self/root/var/lib/dpkg/info/irqbalance.postinst
#!/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
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
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/irqbalance" ]; then
		update-rc.d irqbalance defaults >/dev/null
		invoke-rc.d irqbalance start || exit $?
	fi
fi
# End automatically added section