123456789101112131415161718192021222324252627 |
- #!/bin/sh
- # Begin section update-rc.d
- if type update-rc.d >/dev/null 2>/dev/null; then
- if [ -n "$D" ]; then
- OPT="-r $D"
- else
- OPT="-s"
- fi
- update-rc.d $OPT bluetooth defaults
- fi
- # End section update-rc.d
- OPTS=""
- if [ -n "$D" ]; then
- OPTS="--root=$D"
- fi
- if type systemctl >/dev/null 2>/dev/null; then
- systemctl $OPTS enable bluetooth.service
- if [ -z "$D" -a "enable" = "enable" ]; then
- systemctl --no-block restart bluetooth.service
- fi
- fi
- if [ x"$D" = "x" ]; then
- if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
- fi
|