7c353a0161
OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=0967d3d80954690030ba7b5c3c4f842f
43 lines
782 B
Bash
43 lines
782 B
Bash
#! /bin/sh
|
|
#
|
|
# /etc/init.d/bluez-coldplug
|
|
#
|
|
# Copyright (c) 2009, SUSE Linux Products GmbH Nuernberg, Germany. All rights reserved.
|
|
#
|
|
#
|
|
### BEGIN INIT INFO
|
|
# Provides: bluez-coldplug
|
|
# Required-Start: dbus $remote_fs
|
|
# Should-Start: $network $syslog
|
|
# Required-Stop: $null
|
|
# Should-Stop: $null
|
|
# Default-Start: 2 3 5
|
|
# Default-Stop:
|
|
# Short-Description:
|
|
# Description: handles udev coldplug of bluetooth dongles
|
|
### END INIT INFO
|
|
|
|
. /etc/rc.status
|
|
|
|
case "$1" in
|
|
start|restart|try-restart)
|
|
udevadm trigger --subsystem-match=bluetooth
|
|
rc_status -v
|
|
;;
|
|
stop)
|
|
rc_status -v
|
|
;;
|
|
force-reload|reload)
|
|
rc_status -v
|
|
;;
|
|
status)
|
|
rc_status -v
|
|
;;
|
|
*)
|
|
echo "Usage: $0" \
|
|
"{start|stop|status|try-restart|restart|force-reload|reload}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
rc_exit
|