2009-08-27 19:11:24 +02:00
|
|
|
#! /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:
|
2009-12-29 19:03:33 +01:00
|
|
|
# Short-Description:
|
2009-08-27 19:11:24 +02:00
|
|
|
# Description: handles udev coldplug of bluetooth dongles
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
. /etc/rc.status
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start|restart|try-restart)
|
2010-05-05 22:05:09 +02:00
|
|
|
udevadm trigger --subsystem-match=bluetooth --action=add
|
2009-08-27 19:11:24 +02:00
|
|
|
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
|