#!/bin/sh
[ "$(pidof nickel | wc -w)" == "0" ] && exit

if [ "$STARTUP" == "1" ]; then
	echo exiting
	exit;
fi

if [ "$ACTION" == "offline" ]; then
	ACTION=remove
fi

if [ "$ACTION" == "online" ]; then
	exit;
fi

echo usb plug $ACTION >> /tmp/nickel-hardware-status &

