-
Notifications
You must be signed in to change notification settings - Fork 2
/
transfer_kernels.sh
executable file
·100 lines (91 loc) · 1.4 KB
/
transfer_kernels.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
echo $1
RPI2="192.168.1.179"
if [ $1 = '1' ]; then
cd HelloTeapot/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '2' ]; then
cd Demo/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '3' ]; then
cd jpeg2000/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '4' ]; then
cd gpsudpserver/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '5' ]; then
cd OpenGLES/HelloGLES/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '6' ]; then
cd wall/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '7' ]; then
cd HelloVideo/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi
if [ $1 = '8' ]; then
cd RemoteLed/RPi2
if [ -e kernel7.img ]; then
pwd
ls -la kernel7.img
tftp $RPI2 < cmdstftp
cd ../../
else
echo 'no kernel7.img'
fi
fi