K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / lib / dpkg / info /
server ip : 104.21.89.46

your ip : 108.162.241.180

H O M E


Filename/var/lib/dpkg/info/udev.preinst
Size2.79 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified15-Apr-2014 00:35
Last accessed06-Jul-2025 22:06
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh -e
# This script can be called in the following ways:
#
# Before the package is installed:
# <new-preinst> install
#
# Before removed package is upgraded:
# <new-preinst> install <old-version>
#
# Before the package is upgraded:
# <new-preinst> upgrade <old-version>
#
#
# If postrm fails during upgrade or fails on failed upgrade:
# <old-preinst> abort-upgrade <new-version>


# Disable udevadm from being run during an upgrade, to cause installation
# failures of packages which call udevadm trigger without depending on udev
disable_udevadm()
{
dpkg-divert --package fake-udev --rename --divert /bin/udevadm.upgrade \
--add /bin/udevadm

cat <<'UDEVADM' > /bin/udevadm
#!/bin/sh

if [ "$1" = "trigger" ]; then
echo "udevadm trigger is not permitted while udev is unconfigured." 1>&2
exit 1
fi

if [ "$1" = "settle" ]; then
echo "udevadm settle is not permitted while udev is unconfigured." 1>&2
exit 1
fi

exec /bin/bash -c "exec -a \"\$0\" /bin/udevadm.upgrade \"\$@\"" "$0" "$@"
UDEVADM
chmod +x /bin/udevadm
}


case "$1" in
install|upgrade)
disable_udevadm
;;

abort-upgrade)
;;

*)
echo "$0 called with unknown argument \`$1'" 1>&2
exit 1
;;
esac

# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/udev" ] && [ -L "/etc/init.d/udev" ] \
&& [ $(readlink -f "/etc/init.d/udev") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/udev"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/udev-finish" ] && [ -L "/etc/init.d/udev-finish" ] \
&& [ $(readlink -f "/etc/init.d/udev-finish") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/udev-finish"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/udevtrigger" ] && [ -L "/etc/init.d/udevtrigger" ] \
&& [ $(readlink -f "/etc/init.d/udevtrigger") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/udevtrigger"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/udevmonitor" ] && [ -L "/etc/init.d/udevmonitor" ] \
&& [ $(readlink -f "/etc/init.d/udevmonitor") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/udevmonitor"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/udev-fallback-graphics" ] && [ -L "/etc/init.d/udev-fallback-graphics" ] \
&& [ $(readlink -f "/etc/init.d/udev-fallback-graphics") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/udev-fallback-graphics"
fi
fi
# End automatically added section

exit 0