minor cleanup in customize_evbarm():

keep handling of /etc/rc.conf in one place
This commit is contained in:
hubertf 2017-05-13 10:44:58 +00:00
parent 5dd8362a86
commit f468e54647
1 changed files with 3 additions and 2 deletions

View File

@ -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 @@ make_fstab_evbarm() {
}
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}