From: Luis R. Rodriguez Date: Tue, 25 May 2010 22:45:47 +0000 (-0700) Subject: compat-wireless: only copy existing Kconfig files X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=19667f7acd0ae4cc8bc355beb43ad720d00cd2df;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: only copy existing Kconfig files If no Kconfig file exist don't try to copy it to avoid the warning. Signed-off-by: Luis R. Rodriguez --- diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 8ff64cd32ddb..d93c5b0e4a36 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -296,7 +296,9 @@ for i in $DRIVERS; do echo "Copying $GIT_TREE/$i/*.[ch]" cp $GIT_TREE/$i/*.[ch] $i/ cp $GIT_TREE/$i/Makefile $i/ - cp $GIT_TREE/$i/Kconfig $i/ + if [ -f $GIT_TREE/$i/Kconfig ]; then + cp $GIT_TREE/$i/Kconfig $i/ + fi rm -f $i/*.mod.c done