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:
15
sys-apps/micro-evtd/files/micro-evtd.wrapper
Normal file
15
sys-apps/micro-evtd/files/micro-evtd.wrapper
Normal 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
|
||||
Reference in New Issue
Block a user