-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_weekly.sh
More file actions
executable file
·39 lines (34 loc) · 1.21 KB
/
get_weekly.sh
File metadata and controls
executable file
·39 lines (34 loc) · 1.21 KB
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
#!/bin/sh -x
KER_VER=2.6.35
echo "./get_weekly.sh //10.192.224.48/LinuxReleaseCandidate/L2.6.31_10.04.01_ER_RC1/Image 10.04.01_ER"
if [ $# -lt 2 ]
then
echo "need give version like 10.04.00"
exit 1
fi
if [ $3 ]; then
KER_VER=$3
fi
yes=0
if [ $yes == "1" ]; then
export PLATFORM=MX233
./newrc_v2 $1/L${KER_VER}_$2_images_${PLATFORM}.tar.gz || exit 1
export PLATFORM=MX25
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_${PLATFORM}.tar.gz || exit 1
export PLATFORM=MX28
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_${PLATFORM}.tar.gz || exit 1
export PLATFORM=MX31
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_${PLATFORM}.tar.gz || exit 1
export PLATFORM=MX35
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_${PLATFORM}.tar.gz || exit 1
##export PLATFORM=MX37
##echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_${PLATFORM}.tar.gz || exit 1
export PLATFORM=MX51
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_MX5X.tar.gz || exit 1
export PLATFORM=MX53
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_MX5X.tar.gz || exit 1
export PLATFORM=MX50
echo $passwd | ./newrc_v2 $1/L${KER_VER}_$2_images_MX5X.tar.gz || exit 1
fi
export PLATFORM=MX61
echo $passwd | ./newrc_v2 $1/L2.6.38_$2_images_MX6X.tar.gz || exit 1