Browse Source

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 <[email protected]>
John Crispin 9 years ago
parent
commit
1b13b35231
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/toplevel.mk

+ 1 - 1
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