#!/bin/sh # Author: bash cd /etc/hotplug . ./hotplug.functions script=/etc/init.d/bluetooth case $ACTION in add|register) if [ -x "$script" ]; then debug_mesg invoke "$script" --quite start exec "$script" --quiet start fi debug_mesg action $ACTION not handled ;; remove|unregister) if [ -x "$script" ]; then debug_mesg invoke "$script" --quite stop exec "$script" --quiet stop fi debug_msg action $ACTION not handled ;; *) debug_mesg bluetooth action for $ACTION not supported exit 1 ;; esac