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.70.126.120 H O M E |
Filename | /var/lib/dpkg/info/base-files.preinst |
Size | 905 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 20-Feb-2014 11:05 |
Last accessed | 20-Feb-2014 11:05 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -e
rm_if_matches_md5sum() {
F="$1"
M="$2"
if [ -e "$F" ]; then
md5=$(md5sum "$F" | cut -f 1 -d\ )
if [ "$md5" = "$M" ]; then
rm "$F"
fi
fi
}
case "$1" in
install|upgrade)
# older versions did not ship /etc/os-release as a conffile but
# newer do, because the content changed this triggers a conffile prompt
# now. by removing the file (if unmodified) we avoid this prompt and
# dpkg will re-create it
if dpkg --compare-versions "$2" le-nl "6.5ubuntu11"; then
rm_if_matches_md5sum "/etc/os-release" f8186963c93529f30f62095d35d44138
rm_if_matches_md5sum "/etc/os-release" f528f92199aadbee067e3a24d4b1077a
rm_if_matches_md5sum "/etc/os-release" 0cacc849efc99ac03921a892ca9e0db1
fi
;;
esac
dpkg-maintscript-helper rm_conffile /etc/update-motd.d/99-footer 7.2ubuntu2~ -- "$@"
set -e
rm_if_matches_md5sum() {
F="$1"
M="$2"
if [ -e "$F" ]; then
md5=$(md5sum "$F" | cut -f 1 -d\ )
if [ "$md5" = "$M" ]; then
rm "$F"
fi
fi
}
case "$1" in
install|upgrade)
# older versions did not ship /etc/os-release as a conffile but
# newer do, because the content changed this triggers a conffile prompt
# now. by removing the file (if unmodified) we avoid this prompt and
# dpkg will re-create it
if dpkg --compare-versions "$2" le-nl "6.5ubuntu11"; then
rm_if_matches_md5sum "/etc/os-release" f8186963c93529f30f62095d35d44138
rm_if_matches_md5sum "/etc/os-release" f528f92199aadbee067e3a24d4b1077a
rm_if_matches_md5sum "/etc/os-release" 0cacc849efc99ac03921a892ca9e0db1
fi
;;
esac
dpkg-maintscript-helper rm_conffile /etc/update-motd.d/99-footer 7.2ubuntu2~ -- "$@"