Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/embedded/conf minor cleanup in customize_evbar...



details:   https://anonhg.NetBSD.org/src/rev/c83a2c1862f8
branches:  trunk
changeset: 353583:c83a2c1862f8
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Sat May 13 10:44:58 2017 +0000

description:
minor cleanup in customize_evbarm():
keep handling of /etc/rc.conf in one place

diffstat:

 distrib/utils/embedded/conf/evbarm.conf |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r b3ef1f205be3 -r c83a2c1862f8 distrib/utils/embedded/conf/evbarm.conf
--- a/distrib/utils/embedded/conf/evbarm.conf   Sat May 13 03:26:03 2017 +0000
+++ b/distrib/utils/embedded/conf/evbarm.conf   Sat May 13 10:44:58 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.26 2017/04/12 23:32:11 jmcneill Exp $
+# $NetBSD: evbarm.conf,v 1.27 2017/05/13 10:44:58 hubertf Exp $
 # evbarm shared config
 #
 image=$HOME/${board}.img
@@ -118,13 +118,14 @@
 }
 
 customize_evbarm() {
-       cp ${release}/etc/rc.conf ${mnt}/etc/rc.conf
        if $minwrites; then
                mkdir ${mnt}/etc/postfix
                (umask 022
                sed -e 's/fifo/unix/' < ${release}/etc/postfix/master.cf > \
                    ${mnt}/etc/postfix/master.cf)
        fi
+       
+       cp ${release}/etc/rc.conf ${mnt}/etc/rc.conf
        cat >> ${mnt}/etc/rc.conf << EOF
 rc_configured=YES
 hostname=${board}



Home | Main Index | Thread Index | Old Index