bluez5.prerm 361 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # Begin section update-rc.d
  3. if [ -z "$D" -a -x "/etc/init.d/bluetooth" ]; then
  4. /etc/init.d/bluetooth stop || :
  5. fi
  6. # End section update-rc.d
  7. OPTS=""
  8. if [ -n "$D" ]; then
  9. OPTS="--root=$D"
  10. fi
  11. if type systemctl >/dev/null 2>/dev/null; then
  12. if [ -z "$D" ]; then
  13. systemctl stop bluetooth.service
  14. fi
  15. systemctl $OPTS disable bluetooth.service
  16. fi