add new wrapper script for runtime detect

(Portage version: 2.2.0_alpha123/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
This commit is contained in:
Mario Fetka
2012-10-19 17:12:05 +02:00
parent 4bd0dc51a9
commit c019a514cc
4 changed files with 79 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
#!/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