bluez/bluez-coldplug.init
OBS User autobuild ced641de49 Accepting request 18609 from Base:System
Copy from Base:System/bluez based on submit request 18609 from user seife

OBS-URL: https://build.opensuse.org/request/show/18609
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bluez?expand=0&rev=40
2009-08-27 17:11:24 +00:00

42 lines
761 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:
# 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