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.125

H O M E


Filename/var/lib/dpkg/info/module-init-tools.preinst
Size1.64 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified10-Apr-2014 22:08
Last accessed10-Apr-2014 22:08
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh -e

dpkg-maintscript-helper rm_conffile /etc/init.d/module-init-tools 3.16-1 -- "$@"
dpkg-maintscript-helper rm_conffile /etc/modprobe.d/aliases.conf 3.16-1 -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init/module-init-tools.conf 9-2ubuntu5 -- "$@"

rm_conffile() {
mv_conffile "$1" "$1.dpkg-bak"
}

mv_conffile() {
local package='module-init-tools'
local name="$1"
local newname="$2"

[ -e "$name" ] || return 0

local md5="$(md5sum $name | sed -e 's/ .*//')"
oldmd5="$(dpkg-query -W -f='${Conffiles}' $package | \
sed -n -e "\' $name ' { s/ obsolete$//; s/.* //; p }")"

if [ "$md5" = "$oldmd5" ]; then
rm -f "$name"
else
mv "$name" "$newname"
fi
}

upgrade_quirks() {
# $2 is non-empty when installing from the "config-files" state
[ "$2" ] || return 0

if dpkg --compare-versions $2 lt 3.10-3; then
if dpkg --compare-versions $2 lt 3.3-pre11-4; then

echo 'Upgrading from packages older than 3.3-pre11-4 is not supported.'
echo 'Please purge module-init-tools before installing this package.'
echo '(But remember to keep a copy of /etc/modules!)'
exit 1

fi # lt 3.1-pre11-1

for file in i386 x86_64 mips s390 parisc sparc powerpc.apus \
powerpc.generic powerpc.pmac m68k.amiga m68k.atari m68k.generic; do
rm_conffile /etc/modprobe.d/arch/$file
done
rmdir /etc/modprobe.d/arch/ 2> /dev/null || true
if [ -L /etc/modprobe.d/arch-aliases \
-a ! -e /etc/modprobe.d/arch-aliases ]; then
rm /etc/modprobe.d/arch-aliases
fi

mv_conffile /etc/modprobe.d/aliases /etc/modprobe.d/aliases.conf

fi # lt 3.10-3
}

case "$1" in
install|upgrade) upgrade_quirks "$@" ;;
esac



exit 0