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.7.54 H O M E |
Filename | /var/lib/dpkg/info/hdparm.postinst |
Size | 819 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 16-Nov-2013 05:55 |
Last accessed | 06-Jul-2025 22:39 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -e
if [ -z "$2" ] || dpkg --compare-versions "$2" lt 9.39~ ; then
[ ! -L /etc/udev/rules.d/z60_hdparm.rules ] || rm /etc/udev/rules.d/z60_hdparm.rules
[ ! -f /etc/udev/hdparm.rules ] || rm /etc/udev/hdparm.rules
fi
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 8.9-2; then
rm -fv /etc/rc0.d/K75hdparm /etc/rc6.d/K75hdparm
fi
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/85_hdparm.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/85-hdparm.rules ..."
if [ -e "/etc/udev/rules.d/85-hdparm.rules" ]; then
mv -f "/etc/udev/rules.d/85-hdparm.rules" "/etc/udev/rules.d/85-hdparm.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/85_hdparm.rules" "/etc/udev/rules.d/85-hdparm.rules"
fi
fi
# End automatically added section
set -e
if [ -z "$2" ] || dpkg --compare-versions "$2" lt 9.39~ ; then
[ ! -L /etc/udev/rules.d/z60_hdparm.rules ] || rm /etc/udev/rules.d/z60_hdparm.rules
[ ! -f /etc/udev/hdparm.rules ] || rm /etc/udev/hdparm.rules
fi
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 8.9-2; then
rm -fv /etc/rc0.d/K75hdparm /etc/rc6.d/K75hdparm
fi
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/85_hdparm.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/85-hdparm.rules ..."
if [ -e "/etc/udev/rules.d/85-hdparm.rules" ]; then
mv -f "/etc/udev/rules.d/85-hdparm.rules" "/etc/udev/rules.d/85-hdparm.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/85_hdparm.rules" "/etc/udev/rules.d/85-hdparm.rules"
fi
fi
# End automatically added section