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

your ip : 108.162.241.220

H O M E


Filename/var/lib/dpkg/info/procps.preinst
Size1.84 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified07-Jan-2014 07:32
Last accessed06-Jul-2025 22:26
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh
# preinst script for procps
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

prep_mv_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
rm -f "$CONFFILE"
fi
fi
}

upgradeoldconffile()
{
f=/etc/init.d/procps.sh
[ ! -e "$f" ] && return

curmd5=`md5sum "$f" |awk '{print $1}'`
oldmd5=`dpkg-query -W -f='${Conffiles}' procps | sed "{\\'^ $f ' ! d; s///}"`
[ "$curmd5" = "$oldmd5" ] && {
# The admin has not modified $f
echo "Preparing to remove obsolete, unmodified conffile: $f"
mv -fv "$f" "$f.from-preinst"
return
} >&2

# The admim modified $f; cause a deliberate conffile prompt
echo "Moving obsolete conffile to new pathname:"
mv -fv "$f" "${f%.sh}"
}


case "$1" in
install)
;;
upgrade)
prep_mv_conffile procps "/etc/init.d/procps.sh"
;;
abort-upgrade)
;;

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

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

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


exit 0