#!/bin/bash
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

device=$(grep "Hardware[[:space:]]*:" /proc/cpuinfo 2>/dev/null | \
	head -n1 | sed "s/^[^:]*: //")
case $device in
	"Buffalo Linkstation Pro/Live" | "Buffalo/Revogear Kurobox Pro")
		exec /usr/sbin/micro-evtd.pro "$@" ;;
	"Buffalo TeraStation Pro/Live")
		exec /usr/sbin/micro-evtd.tera "$@" ;;
	*)
	echo "!! Your device is unsupported !!" ;;
esac