You've already forked Raspberry-Pi-Bluetooth
All checks were successful
Raspberry Pi Bluetooth (Bookworm) / Raspberry Pi Bluetooth [arm64] (push) Successful in 11s
27 lines
633 B
Bash
27 lines
633 B
Bash
#!/usr/bin/sh
|
|
|
|
set -e
|
|
set -u
|
|
|
|
if [ -d '/run/systemd/system' ]; then
|
|
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
|
|
/usr/bin/true
|
|
fi
|
|
|
|
case "${1}" in
|
|
remove)
|
|
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
|
/usr/bin/deb-systemd-helper mask 'hciuart.service' > '/dev/null' 2>&1 || \
|
|
/usr/bin/true
|
|
fi
|
|
;;
|
|
purge)
|
|
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
|
/usr/bin/deb-systemd-helper purge 'hciuart.service' > '/dev/null' 2>&1 || \
|
|
/usr/bin/true
|
|
/usr/bin/deb-systemd-helper unmask 'hciuart.service' > '/dev/null' 2>&1 || \
|
|
/usr/bin/true
|
|
fi
|
|
;;
|
|
esac
|