PREUN
/bin/sh
/usr/share/rpm-helper/del-service bluez-utils $1 bluetooth
/usr/share/rpm-helper/del-service bluez-utils $1 dund
/usr/share/rpm-helper/del-service bluez-utils $1 hidd
/usr/share/rpm-helper/del-service bluez-utils $1 pand
POSTIN
/bin/sh
#remove obsolete alternative
if [ -h /etc/alternatives/bluepin ]; then
update-alternatives --remove bluepin /usr/bin/bluepin
fi
#migrate old configuration
if [ "$1" = "2" -a -d /var/lib/lib/bluetooth ]; then
mv -f /var/lib/lib/bluetooth/* /var/lib/bluetooth/ > /dev/null 2>&1 || exit 0
rmdir /var/lib/lib/bluetooth/ > /dev/null 2>&1 || exit 0
rmdir /var/lib/lib/ > /dev/null 2>&1 || exit 0
fi
/usr/share/rpm-helper/add-service bluez-utils $1 bluetooth
/usr/share/rpm-helper/add-service bluez-utils $1 dund
/usr/share/rpm-helper/add-service bluez-utils $1 hidd
/usr/share/rpm-helper/add-service bluez-utils $1 pand
Triggers
bluez-utils <
2.9-1mdk
/bin/sh
/sbin/chkconfig bluetooth reset