* [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
* Re: [PATCH oe-setuplayer] oe-layertool-setup: Add warning before overwriting local.conf
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
0 siblings, 0 replies; 2+ messages in thread
From: Maupin, Chase @ 2013-07-08 16:38 UTC (permalink / raw)
To: Heroor, Siddharth, meta-arago@arago-project.org
Acked-by: Chase Maupin <chase.maupin@ti.com>
Thanks for this
>-----Original Message-----
>From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
>bounces@arago-project.org] On Behalf Of Heroor, Siddharth
>Sent: Wednesday, July 03, 2013 12:44 AM
>To: meta-arago@arago-project.org
>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 <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
>
>_______________________________________________
>meta-arago mailing list
>meta-arago@arago-project.org
>http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
^ permalink raw reply [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.