All of lore.kernel.org
 help / color / mirror / Atom feed
From: Siddharth Heroor <heroor@ti.com>
To: <meta-arago@arago-project.org>
Subject: [PATCH oe-setuplayer] oe-layertool-setup: Add warning before overwriting local.conf
Date: Wed, 3 Jul 2013 11:14:28 +0530	[thread overview]
Message-ID: <20130703054428.GA9111@ti.com> (raw)

* Its possible for the user to have already configured her setup.
  Warn the user that we are overwriting his local.conf when
  generating the local.conf.

Signed-off-by: Siddharth Heroor <heroor@ti.com>
---
 oe-layertool-setup.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/oe-layertool-setup.sh b/oe-layertool-setup.sh
index e8c427f..55cd174 100755
--- a/oe-layertool-setup.sh
+++ b/oe-layertool-setup.sh
@@ -717,6 +717,13 @@ NOTE: You will probably want to change the default MACHINE setting in the
       local.conf file to the machine you are trying to build.
 
 EOM
+    
+    if [ -e $confdir/local.conf ]
+    then
+        echo "WARNING: Found existing $confdir/local.conf"
+        echo "Saving a backup to $confdir/local.conf.bak" 
+        cp -f $confdir/local.conf $confdir/local.conf.bak
+    fi
 
     # First copy the template file
     cp -f $OECORELOCALCONFPATH $confdir/local.conf
-- 
1.7.0.4



             reply	other threads:[~2013-07-03  5:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03  5:44 Siddharth Heroor [this message]
2013-07-08 16:38 ` [PATCH oe-setuplayer] oe-layertool-setup: Add warning before overwriting local.conf Maupin, Chase

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130703054428.GA9111@ti.com \
    --to=heroor@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.