Repository navigation
Expand file tree
/
Copy pathinit
More file actions
executable file
·47 lines (42 loc) · 1.35 KB
/
Copy pathinit
File metadata and controls
executable file
·47 lines (42 loc) · 1.35 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
40
41
42
43
44
45
46
47
#!/bin/bash
cd $(dirname $(readlink -f $0))
if [ ! -e Makefile ] ;then
echo "ImageBuilder not checked out yet"
echo "try running ../prepare $$PROFILE"
exit 1
fi
echo
rm -r bin/ || echo "no bindir, skipping removal"
if [ -e ./custom_make ];then
echo "Starting Custom Make"
sh ./custom_make 2>/dev/null | while read line; do
printf "."
done
else
echo "No Custom Make Script exists, bailing out!"
exit 1
fi
echo
if [ -e bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin ];
then
cat << EOF
finished building
You can use the following images:
Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin
EOF
elif [ -e bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin ];
then
cat << EOF
finished building
You can use the following images:
Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin
EOF
else
cat << EOF
It seems like the factory image has not been created, it is most
likely that the image would be too big and does not fit into the tiny FLASH.
Try removing modules from \`custom_make\` and retry building.
EOF
fi