Skip to content

Commit 206066a

Browse files
author
John Polak
committed
SCRIPT: check that update is being run an SDR
1 parent 09aa67f commit 206066a

File tree

12 files changed

+42
-0
lines changed

12 files changed

+42
-0
lines changed

crimson-rtm10/update-sd.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
if uname -m | grep -v armv7l
2+
then
3+
echo "ERROR: It appears you're running this update package on a host machine."
4+
echo "Please use scp to copy the update package onto a Crimson SDR."
5+
exit 1
6+
fi
7+
18
if [ -z "$1" ]
29
then
310
sh create_ramdisk.sh; sh update-journal-size.sh; sh update-fs.sh; sh update-website.sh; sh update-mcu.sh; echo "Waiting for MCUs to boot"; sleep 25; sh update-server.sh; sh update-fpga-sd.sh; echo "Waiting for server to come up"; sleep 35; sh checkVersion.sh;

crimson-rtm4/update-sd.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
if uname -m | grep -v armv7l
2+
then
3+
echo "ERROR: It appears you're running this update package on a host machine."
4+
echo "Please use scp to copy the update package onto a Crimson SDR."
5+
exit 1
6+
fi
7+
18
sh create_ramdisk.sh;sh update-journal-size.sh; sh update-mcu.sh; sh update-server.sh ; sh update-fpga-sd.sh ; echo "Waiting 2mins for server to come up"; sleep 120; sh checkVersion.sh; sleep 10; echo "Restarting"; mem rw sys0 0;

crimson-rtm5/update-sd.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
if uname -m | grep -v armv7l
2+
then
3+
echo "ERROR: It appears you're running this update package on a host machine."
4+
echo "Please use scp to copy the update package onto a Crimson SDR."
5+
exit 1
6+
fi
7+
18
sh create_ramdisk.sh;sh update-journal-size.sh; sh update-website.sh;sh update-mcu.sh; sh update-server.sh ; sh update-fpga-sd.sh ; echo "Waiting 2mins for server to come up"; sleep 120; sh checkVersion.sh;
29
if [ -z "$1" ]
310
then

crimson-rtm6/update-sd.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
if uname -m | grep -v armv7l
2+
then
3+
echo "ERROR: It appears you're running this update package on a host machine."
4+
echo "Please use scp to copy the update package onto a Crimson SDR."
5+
exit 1
6+
fi
7+
18
sh create_ramdisk.sh;sh update-journal-size.sh; sh update-fs.sh; sh update-website.sh;sh update-mcu.sh; sh update-server.sh ; sh update-fpga-sd.sh ; echo "Waiting 2mins for server to come up"; sleep 120; sh checkVersion.sh;
29
if [ -z "$1" ]
310
then

crimson-rtm8/update-sd.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
if uname -m | grep -v armv7l
2+
then
3+
echo "ERROR: It appears you're running this update package on a host machine."
4+
echo "Please use scp to copy the update package onto a Crimson SDR."
5+
exit 1
6+
fi
7+
18
if [ -z "$1" ]
29
then
310
sh create_ramdisk.sh; sh update-journal-size.sh; sh update-fs.sh; sh update-website.sh; sh update-mcu.sh; sh update-server.sh; sh update-fpga-sd.sh; echo "Waiting 1min for server to come up"; sleep 60; sh checkVersion.sh;

crimson-rtm9/update-sd.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
if uname -m | grep -v armv7l
2+
then
3+
echo "ERROR: It appears you're running this update package on a host machine."
4+
echo "Please use scp to copy the update package onto a Crimson SDR."
5+
exit 1
6+
fi
7+
18
if [ -z "$1" ]
29
then
310
sh create_ramdisk.sh; sh update-journal-size.sh; sh update-fs.sh; sh update-website.sh; sh update-mcu.sh; echo "Waiting for MCUs to boot"; sleep 25; sh update-server.sh; sh update-fpga-sd.sh; echo "Waiting for server to come up"; sleep 35; sh checkVersion.sh;

updateCrimsonRtm10

45 Bytes
Binary file not shown.

updateCrimsonRtm4

6.9 KB
Binary file not shown.

updateCrimsonRtm5

-333 Bytes
Binary file not shown.

updateCrimsonRtm6+7

107 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)