#!/bin/sh

# Make sure that there is no other bluefw already running 
# for this device
PS='/bin/ps -C bluefw --format args --noheaders'
if $PS | grep $DEVICE > /dev/null 2>&1; then
	exit
fi

exec /sbin/bluefw usb $DEVICE
