aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2019-02-26 01:29:40 +0000
committerColin Percival <cperciva@FreeBSD.org>2019-02-26 01:29:40 +0000
commit67b42741fa74692a8d0310a4418555f7dfa61f88 (patch)
tree1ef62f21fb477aee5cebe796e06ac2667e2cf21e /release
parentcf10668e766e0d357f170539cae89a8844120fdb (diff)
MFC r344315:
Fix sed script to insert Amazon NTP server into ntp.conf once rather than twice.
Notes
Notes: svn path=/stable/12/; revision=344557
Diffstat (limited to 'release')
-rw-r--r--release/tools/ec2.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index c0164fc8c3f1..3be4a5015dbd 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -96,7 +96,7 @@ vm_extra_pre_umount() {
# Use the NTP service provided by Amazon
sed -i '' -e 's/^pool/#pool/' \
- -e 's/^#server.*/server 169.254.169.123 iburst/' \
+ -e '1,/^#server/s/^#server.*/server 169.254.169.123 iburst/' \
${DESTDIR}/etc/ntp.conf
# The first time the AMI boots, the installed "first boot" scripts