1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/bin/sh
set -e
case "${1}" in
configure)
if [ -z "$2" ] || dpkg --compare-versions -- "$2" le-nl "20240822-1~"; then
# use udevadm to start macsmc-battery-charge-control-end-threshold.path
# on new installs or upgrades from versions prior to 20240822-1
if command -v udevadm >/dev/null 2>&1; then
udevadm trigger --action=change --subsystem-match=power_supply || true
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
triggered)
update-m1n1 || exit 0
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
|