Ticket #5215: sa4250_ch_guid

File sa4250_ch_guid, 423 bytes (added by bcorsello@…, 17 years ago)

sa4250_ch_guid -- wrapper for sa4250_ch

Line 
1#!/bin/sh
2#
3# sa4250_ch_guid  Copyright 2008 by Bradley S. Corsello
4# Licensed under GPL
5#
6# Because the node number assigned to Firewire STBs can change, this
7# script changes channel on connnected SA4250 STB identified by GUID.
8# You don't need to use the whole GUID, just enough to make it unique
9#
10
11GUID="$1"
12CHANNEL="$2"
13
14/usr/local/bin/sa4250_ch -n $(plugreport 2>/dev/null | awk '/'$GUID'/ {print $2}' - ) $CHANNEL