-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmkoolite
executable file
·41 lines (30 loc) · 900 Bytes
/
mkoolite
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
#!/bin/sh -e
# automatic build maker
#build version
echo "Starting `basename "$0"`" >> ./build-log
END=$1
BASE="openwrt-"
BASEO="openwrt-ar71xx-generic-tl-"
BASEQ="openwrt-ar71xx-generic-"
ENDO="-squashfs-factory"
ENDU="-squashfs-sysupgrade"
echo " <model>" > ./files/etc/header_msg
echo "/img/rooter.png" >> ./files/etc/header_msg
echo "/img/rooter.png" >> ./files/etc/header_msg
#echo "Oolite" > ./files/etc/custom
#echo "Oolite" >> ./files/etc/custom
#echo "WiFiX" >> ./files/etc/custom
cp ./configfiles/.config_oolite ./.config
make V=s
MOD="oolite-v1"
EXTB=".bin"
ORIG=$BASEQ$MOD$ENDU$EXTB
FIRM=$BASE$MOD$END-upgrade$EXTB
cp ./bin/targets/ar71xx/generic/$ORIG ./images/$FIRM
cp ./configfiles/GL/readme.txt ./images/readme.txt
cd ./images
zip $MOD$END.zip $FIRM readme.txt
rm -f $FIRM
rm -f readme.txt
cd ..
echo " Ending `basename "$0"`" >> ./build-log