forked from arnobroekhof/flashboot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-bindist.sh
executable file
·89 lines (75 loc) · 1.99 KB
/
build-bindist.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
#!/bin/sh
# Functions
function getrandomduid {
# Generates a 16 chars long hex string
tempduid=`cat /dev/urandom | tr -dc "a-f0-9" | fold -w 16 | head -1`
echo ${tempduid}
}
DUID=`getrandomduid`
export DUID
mkdir bindist
DISTNAME=WRAP12
export TTYSPEED=38400
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=PCENGINES
export TTYSPEED=38400
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=COMMELL-LE564
export TTYSPEED=19200
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=GENERIC-RD
export TTYSPEED=9600
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=SOEKRIS4501
export TTYSPEED=19200
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=SOEKRIS4521
export TTYSPEED=19200
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=SOEKRIS4801
export TTYSPEED=19200
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=SOEKRIS5501
export TTYSPEED=19200
./build-kernel.sh ${DISTNAME}
cp obj/bsd.gz bindist/${DISTNAME}.bsd
./build-diskimage.sh image
gzip image
mv image.gz bindist/${DISTNAME}.image
DISTNAME=PENDRIVE
./build-usbkernel.sh GENERIC-RD ${DUID}
./build-usbimage.sh pendrive ${DUID}
gzip pendrive
mv pendrive.gz bindist/${DISTNAME}.image
DISTNAME=LIVECD
sh ./build-livecd.sh GENERIC-RD
mv obj/live_cd*.iso bindist/
echo "All images, iso and kernels has been moved to bindist"