From: John Crispin Date: Wed, 6 Jul 2016 08:34:44 +0000 (+0200) Subject: include/toplevel.mk: fix defconfig when ~/.openwrt/defconfig exists - take 2 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1b13b3523198230825faf097b2abea0345e0cb35;p=openwrt%2Fstaging%2Fblocktrron.git include/toplevel.mk: fix defconfig when ~/.openwrt/defconfig exists - take 2 commit 5b728074160b ("include/toplevel.mk: fix defconfig when ~/.openwrt/defconfig exists") was missing a ! Signed-off-by: John Crispin --- diff --git a/include/toplevel.mk b/include/toplevel.mk index 3844f3cfc1..e13acafe9c 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -110,7 +110,7 @@ config-clean: FORCE defconfig: scripts/config/conf prepare-tmpinfo FORCE touch .config - @if [ -s .config -a -e $(HOME)/.openwrt/defconfig ]; then cp $(HOME)/.openwrt/defconfig .config; fi + @if [ ! -s .config -a -e $(HOME)/.openwrt/defconfig ]; then cp $(HOME)/.openwrt/defconfig .config; fi $< --defconfig=.config Config.in confdefault-y=allyes