#!/bin/sh set -e case "$1" in upgrade) if [ -d /run/systemd/system ]; then # The Bluetooth override file is now being handled as as debain package file and not a "conffile". # Because of this, it may not be removed when upgrading from an older version of the nvidia-disable-bt-profiles package # where it was a "conffile". This ensures that the file is removed if it exists. if [ -f /etc/systemd/system/bluetooth.service.d/bluetooth-override.conf ]; then echo "Removing bluetooth systemd override file..." rm -f /etc/systemd/system/bluetooth.service.d/bluetooth-override.conf fi fi ;; esac exit 0