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 : 172.69.214.16 H O M E |
Filename | /var/lib/dpkg/info/acpid.postinst |
Size | 865 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 04-Apr-2014 02:41 |
Last accessed | 27-Apr-2025 09:57 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -e
# Remove old init.d links
if dpkg --compare-versions "$2" lt-nl "1.0.10-3"; then
rm -f /etc/rc1.d/K??acpid
fi
if dpkg --compare-versions "$2" lt-nl "1.0.6-16"; then
rm -f /etc/rc[06].d/K??acpid
fi
if dpkg --compare-versions "$2" lt "1.0.6-6"; then
rm -f /etc/rc1.d/K20acpid /etc/rc[2-5].d/S20acpid
fi
# Fix very old permission problem
if dpkg --compare-versions "$2" lt-nl "1.0.10-5"; then
[ -f /var/log/acpid ] && chmod 640 /var/log/acpid*
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/acpid" ] || [ -e "/etc/init/acpid.conf" ]; then
if [ ! -e "/etc/init/acpid.conf" ]; then
update-rc.d acpid defaults >/dev/null
fi
invoke-rc.d acpid start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f acpid remove >/dev/null || exit $?
# End automatically added section
set -e
# Remove old init.d links
if dpkg --compare-versions "$2" lt-nl "1.0.10-3"; then
rm -f /etc/rc1.d/K??acpid
fi
if dpkg --compare-versions "$2" lt-nl "1.0.6-16"; then
rm -f /etc/rc[06].d/K??acpid
fi
if dpkg --compare-versions "$2" lt "1.0.6-6"; then
rm -f /etc/rc1.d/K20acpid /etc/rc[2-5].d/S20acpid
fi
# Fix very old permission problem
if dpkg --compare-versions "$2" lt-nl "1.0.10-5"; then
[ -f /var/log/acpid ] && chmod 640 /var/log/acpid*
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/acpid" ] || [ -e "/etc/init/acpid.conf" ]; then
if [ ! -e "/etc/init/acpid.conf" ]; then
update-rc.d acpid defaults >/dev/null
fi
invoke-rc.d acpid start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f acpid remove >/dev/null || exit $?
# End automatically added section