From bb5711688e7f6b2abe4e82a5b5233194a323b99d Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Thu, 28 May 2009 06:04:31 +0200 Subject: * debian/init: Run update-motd regardless whether its a firstboot or not. * debian/init: Fix comments (LP: #373057) * debian/control: Add update-motd as a depends. * ec2-set-defaults.py: Wait for network to become available. (LP: #308530) --- debian/init | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'debian/init') diff --git a/debian/init b/debian/init index 3f982be5..0f0c3767 100644 --- a/debian/init +++ b/debian/init @@ -16,7 +16,7 @@ NAME=ec2-init . /lib/lsb/init-functions -if [ ! -d /var/run/ec2 ]; then +if [ ! -d /var/ec2 ]; then mkdir /var/ec2 fi @@ -37,8 +37,11 @@ first_boot() { ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub | logger -s -t "ec2" echo "-----END SSH HOST KEY FINGERPRINTS-----" | logger -s -t "ec2" echo "#############################################################" | logger -s -t "ec2" - update-motd + /usr/sbin/update-motd touch /var/ec2/.first-boot + else + log_daemon_msg "Running update-motd" + /usr/sbin/update-motd fi } -- cgit v1.2.3