#!/bin/sh

# Copyright (C) 2009 Draytek

dev_num=$(grep -c -E 'Temper|Go! Temp|TEMPer' /proc/bus/usb/devices)
if [ $dev_num != "0" ]; then
        /etc/init.d/temper start
else
        /etc/init.d/temper stop
fi