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 : 172.69.130.154

H O M E


Filename/var/lib/dpkg/info/cryptsetup.preinst
Size2.18 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 10:01
Last modified02-Nov-2013 01:50
Last accessed06-Jul-2025 22:13
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#! /bin/sh

set -e

create_crypttab() {
if [ ! -f "/etc/crypttab" ]; then
cat <<-EOC >/etc/crypttab
# <target name> <source device> <key file> <options>
EOC
fi
}

# Remove a no-longer used conffile
rm_conffile() {
PKGNAME="$1"
CONFFILE="$2"
if [ -e "$CONFFILE" ]; then
md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
if [ "$md5sum" != "$old_md5sum" ]; then
echo "Obsolete conffile $CONFFILE has been modified by you."
echo "Saving as $CONFFILE.dpkg-bak ..."
mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
else
echo "Removing obsolete conffile $CONFFILE ..."
rm -f "$CONFFILE"
fi
fi
}

VERSION_UDEV="2:1.0.6-5"
case "$1" in
install)
create_crypttab
if dpkg --compare-versions "$2" le "$VERSION_UDEV"; then
rm_conffile cryptsetup "/etc/udev/rules.d/z60_cryptsetup.rules"
fi
;;

upgrade)
if dpkg --compare-versions "$2" le "$VERSION_UDEV"; then
rm_conffile cryptsetup "/etc/udev/rules.d/z60_cryptsetup.rules"
fi
;;

abort-upgrade)
;;

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

# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/cryptdisks-udev" ] && [ -L "/etc/init.d/cryptdisks-udev" ] \
&& [ $(readlink -f "/etc/init.d/cryptdisks-udev") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/cryptdisks-udev"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/cryptdisks" ] && [ -L "/etc/init.d/cryptdisks" ] \
&& [ $(readlink -f "/etc/init.d/cryptdisks") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/cryptdisks"
fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/init/cryptdisks-early.conf /etc/init/cryptdisks-udev.conf 2:1.4.3-4 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/init/cryptdisks-enable.conf /etc/init/cryptdisks.conf 2:1.6.1-1ubuntu1~ -- "$@"
# End automatically added section


exit 0