diff options
author | Philip Balister <philip@opensdr.com> | 2010-04-03 16:59:44 +0000 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-04-03 16:59:44 +0000 |
commit | b0316af8ebc713afaddc5b6ded5c0304353a7ab6 (patch) | |
tree | aa0e59170bd96453e151a15923ae90c98797ef4f /host/apps/omap_debug/fetch-u-boot.sh | |
parent | ea28c75555b989407d182225febffad8d2a64d1e (diff) | |
download | uhd-b0316af8ebc713afaddc5b6ded5c0304353a7ab6.tar.gz uhd-b0316af8ebc713afaddc5b6ded5c0304353a7ab6.tar.bz2 uhd-b0316af8ebc713afaddc5b6ded5c0304353a7ab6.zip |
Attempt to make scripts run inside and outside GHQ.
When at GHQ:
export GHQ=1
export GHQ_USER="something that can log in to astro"
Diffstat (limited to 'host/apps/omap_debug/fetch-u-boot.sh')
-rwxr-xr-x | host/apps/omap_debug/fetch-u-boot.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/apps/omap_debug/fetch-u-boot.sh b/host/apps/omap_debug/fetch-u-boot.sh index 63d4edcf2..a2a488fb2 100755 --- a/host/apps/omap_debug/fetch-u-boot.sh +++ b/host/apps/omap_debug/fetch-u-boot.sh @@ -1,3 +1,6 @@ -scp balister@astro:/workspace/usrp1-e-dev/u-boot-overo/u-boot.bin /media/mmcblk0p1/ +if [ $GHQ ]; then + scp $GHQ_USER@astro:/workspace/usrp1-e-dev/u-boot-overo/u-boot.bin /media/mmcblk0p1/ +else + scp balister@192.168.1.167:src/git/u-boot/u-boot.bin /media/mmcblk0p1/ sync |