1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/configs/preCfg.sh
2022-11-27 10:16:14 +00:00

21 lines
538 B
Bash

#!/bin/sh
if [[ "$1" == "" ]] ; then
echo "Please specify the project name!"
exit 0
fi
P=$1
echo "P=$P"
if [ ! -e $TOPDIR/configs/$P/platform.defconfig ] || [ ! -e $TOPDIR/configs/$P/project.defconfig ] ; then
echo "copy $TOPDIR/configs/$P/$P.defconfig to .config!"
cp $TOPDIR/configs/$P/$P.defconfig $TOPDIR/.config
else
echo "merge $TOPDIR/configs/$P/platform.defconfig and $TOPDIR/configs/$P/project.defconfig to .config!"
cat $TOPDIR/configs/$P/platform.defconfig $TOPDIR/configs/$P/project.defconfig > $TOPDIR/.config
fi