![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /var/lib/dpkg/info/ |
#!/bin/sh set -e # adapted from postinst chrooted() { if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then return 1 fi return 0 } kill_udevd() { if [ -d /run/systemd/system ]; then systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemctl stop systemd-udevd.service else invoke-rc.d udev stop fi } case "$1" in remove) if ! chrooted; then kill_udevd fi ;; esac