mirror of https://github.com/OpenIPC/composer.git
Fix stapler
parent
60b704e557
commit
40e5a067ec
10
stapler
10
stapler
|
@ -13,7 +13,7 @@ RELEASE=""
|
||||||
PROJECT="$1"
|
PROJECT="$1"
|
||||||
PROJECT="${PROJECT:=t31_vixand}"
|
PROJECT="${PROJECT:=t31_vixand}"
|
||||||
TFTPSRV="root@172.17.32.17:/mnt/bigger-2tb/Rotator/TFTP"
|
TFTPSRV="root@172.17.32.17:/mnt/bigger-2tb/Rotator/TFTP"
|
||||||
|
OUTTIME=$(date +"%Y%m%d")
|
||||||
|
|
||||||
echo_c() {
|
echo_c() {
|
||||||
# 31 red, 32 green, 33 yellow, 34 blue, 35 magenta, 36 cyan, 37 white, 38 grey
|
# 31 red, 32 green, 33 yellow, 34 blue, 35 magenta, 36 cyan, 37 white, 38 grey
|
||||||
|
@ -28,6 +28,7 @@ echo_c() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo_c 32 "\nAttention, let's start working on the ${PROJECT} project ...\n"
|
echo_c 32 "\nAttention, let's start working on the ${PROJECT} project ...\n"
|
||||||
git pull
|
git pull
|
||||||
rm -rf Firmware
|
rm -rf Firmware
|
||||||
|
@ -38,7 +39,10 @@ cd Firmware
|
||||||
echo_c 35 "\nYou can get the new assembled firmware components here:\n"
|
echo_c 35 "\nYou can get the new assembled firmware components here:\n"
|
||||||
tree -C output/images
|
tree -C output/images
|
||||||
2tftp output/images/rootfs.squashfs.* output/images/uImage.*
|
2tftp output/images/rootfs.squashfs.* output/images/uImage.*
|
||||||
mkdir ../Output/${Project}_$(date +"%Y%m%d")
|
mkdir -p ../Output/${PROJECT}_
|
||||||
cp -av output/images/rootfs.squashfs.* output/images/uImage.*
|
cp -av output/images/rootfs.squashfs.* output/images/uImage.* ../Output/${PROJECT}_${OUTTIME}
|
||||||
echo_c 35 "\nRollback to home ...\n"
|
echo_c 35 "\nRollback to home ...\n"
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
|
||||||
|
# tree -L 1 Projects
|
||||||
|
|
Loading…
Reference in New Issue