403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/libsystemd-shared:amd64.preinst
#!/bin/sh
set -e

check_unified_cgroup_v2_hierarchy() {
    for line in $(awk '/cgroup2/{print $2 "," $3}' /proc/mounts); do
       if [ "$line" = "/sys/fs/cgroup,cgroup2" ]; then
           return 0
       fi
    done

    return 1
}

if [ "$1" = install ] || [ "$1" = upgrade ]; then
    if [ -z "$DPKG_ROOT"] && [ -d /run/systemd/system ] && dpkg --compare-versions "$2" lt-nl "258~rc1-1~"; then
        if ! check_unified_cgroup_v2_hierarchy; then
            cat <<EOF 1>&2
******************************************************************************
*
* The systemd package cannot be upgraded to version $3, because this
* system is not running a unified cgroupv2 hierarchy, which is required
* since systemd v258.
*
* Please reboot using a unified cgroupv2 hierarchy, and then try again.
*
******************************************************************************
EOF
            exit 1
        fi
    fi
fi



Youez - 2016 - github.com/yon3zu
LinuXploit