#! /bin/sh # Copyright (c) 2008 SuSE Linux Products GmbH, Nuernberg, Germany. # # Author: Stefan Seyfried # /etc/init.d/bluetooth-coldplug # ### BEGIN INIT INFO # Provides: bluetooth-coldplug # Required-Start: $syslog $remote_fs # Should-Start: dbus # Required-Stop: $syslog $remote_fs # Should-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Coldplugging of bluetoothd # Description: Starts bluetooth services on boot if an adapter is present. ### END INIT INFO STATEFILE=/dev/shm/bluetooth-adapter-present INITSCRIPT=/etc/init.d/bluetooth [ -e $STATEFILE ] || exit 0 exec $INITSCRIPT "$@"