File: retrieve_all_data.sh

package info (click to toggle)
line6-usb 0.7.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 324 kB
  • ctags: 648
  • sloc: ansic: 4,215; sh: 120; makefile: 90; perl: 69
file content (30 lines) | stat: -rwxr-xr-x 751 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

#
# Line6 Linux USB driver - 0.6
#
# Copyright (C) 2005, 2006 Markus Grabner (grabner@icg.tugraz.at)
#
#	This program is free software; you can redistribute it and/or
#	modify it under the terms of the GNU General Public License as
#	published by the Free Software Foundation, version 2.
#

# transfer data for all channels, effects, and amp setups from the PODxt Pro

SYSDIR=`line6_find_device.pl sysdir POD`
mkdir -p data

function retrieve_data
{
    for i in `seq -f "%03g" 0 $2`; do
	echo $i > $SYSDIR/retrieve_$1
	name=`cat $SYSDIR/name_buf | tr " /" "__"`
	echo "retrieving $1 #$i: $name"
	cp $SYSDIR/dump_buf data/${1}_${i}_${name}.pod
    done
}

retrieve_data channel 127
retrieve_data effects_setup 63
retrieve_data amp_setup 63