Skip to content

Commit

Permalink
generate secon release with the last commit in openwrt and include op…
Browse files Browse the repository at this point in the history
…tion to custom config build in build script
  • Loading branch information
vurrut committed Dec 8, 2019
1 parent 70a8ceb commit e799c4d
Show file tree
Hide file tree
Showing 2 changed files with 7,287 additions and 8 deletions.
43 changes: 35 additions & 8 deletions build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,49 @@ fi



if [ "$COMMAND"]
then
mk_menuconfig()
{

echo -e "$txtblu--> Custom setup for compile... $NC"
make menuconfig
cp ../config.seed ../openwrt/.config
make defconfig
else

echo -e "$txtred--> config not customize.. $NC"
cp ../openwrt/config.seed ../openwrt/.config
cp ../openwrt/config.seed ../config_$(date +%Y%m%d%H%M)
make defconfig
}
mk_defconfig()
{

echo -e "$txtred--> config not customize..Read enter to continue $NC"
# Setup .config from config.seed and update seed for new changes
echo -e "$txtred--> Setup source for compile... $NC"
cp ../config.seed ../openwrt/.config
make defconfig

fi
}
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->#####do you want customide the build (y/n)?#########"
echo -e "$txtblu-->#####menuconfig will be launch######################"
echo -e "$txtblu-->#####save the new config with name config.seed #####"
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->####################################################"
echo -e "$txtblu-->####################################################"
read -p "" choice

case "$choice" in
y|Y) echo "choice menuconfig"
mk_menuconfig
;;
n|N) echo "choice last good config stored in main folder"
mk_defconfig
;;
*) echo "invalid";;
esac


# Prepare for multicore compile
echo -e "$YELLOW--> Prepare for multicore compile... $NC"
make download
Expand Down
Loading

0 comments on commit e799c4d

Please sign in to comment.