All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH oe-setuplayer] oe-layertool-setup: Add warning before overwriting local.conf
@ 2013-07-03  5:44 Siddharth Heroor
  2013-07-08 16:38 ` Maupin, Chase
  0 siblings, 1 reply; 2+ messages in thread
From: Siddharth Heroor @ 2013-07-03  5:44 UTC (permalink / raw)
  To: meta-arago

* 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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-08 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-03  5:44 [PATCH oe-setuplayer] oe-layertool-setup: Add warning before overwriting local.conf Siddharth Heroor
2013-07-08 16:38 ` Maupin, Chase

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.