oe-layertool-setup: Add warning before overwriting local.conf
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
@@ -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
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.
Signed-off-by Siddharth Heroor <[email protected]>---
oe-layertool-setup.sh| 7 +++++++1 files changed, 7 insertions(+), 0 deletions(-)oe-layertool-setup.sh +0
-0@@ -717,6 +717,13 @@ NOTE: You will probably want to change thedefault 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