#!/bin/sh # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ cd /etc/hotplug . ./hotplug.functions debug_mesg "arguments ($*) env (`env`)" SCRIPT=/etc/init.d/bluetooth case $ACTION in add|register) if [ -x $SCRIPT ]; then debug_mesg "invoke $SCRIPT --quiet start" exec $SCRIPT --quiet start mesg "couldn't exec $SCRIPT" exit 1 fi debug_mesg "no runnable $SCRIPT found" ;; remove|unregister) if [ -x $SCRIPT ]; then debug_mesg "invoke $SCRIPT --quiet stop" exec $SCRIPT --quiet stop mesg "couldn't exec $SCRIPT" exit 1 fi debug_mesg "no runnable $SCRIPT found" ;; *) debug_mesg "action $ACTION not supported" exit 1 ;; esac exit 1