Skip to contentSkip to conversation

oe-layertool-setup: Add warning before overwriting local.conf

PATCH In review Siddharth Heroor 2 participants 2 messages Jul 3, 2013 – Jul 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-layertool-setup: Add warning before overwriting local.conf

* 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.

---
 oe-layertool-setup.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
oe-layertool-setup.sh +7 -0
index e8c427f..55cd174 100755
@@ -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
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw

Thanks for this

Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Heroor, Siddharth
Sent: Wednesday, July 03, 2013 12:44 AM
To: [email protected]
Subject: [meta-arago] [PATCH oe-setuplayer] oe-layertool-setup:
Add warning before overwriting local.conf

* 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.

---
oe-layertool-setup.sh | 7 +++++++

1 files changed, 7 insertions(+), 0 deletions(-)
oe-layertool-setup.sh +0 -0
index e8c427f..55cd174 100755
@@ -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

oe-layertool-setup.sh +7 -1
+
+    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

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago