overlay/sys-apps/micro-evtd/files/micro-evtd.wrapper
Mario Fetka c019a514cc add new wrapper script for runtime detect
(Portage version: 2.2.0_alpha123/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
2012-10-19 17:12:05 +02:00

16 lines
482 B
Bash

#!/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