From b3496692b26255918e8d269ebd89895a7cae84f4 Mon Sep 17 00:00:00 2001 From: Jeremy Dubois Date: Mon, 15 Feb 2021 18:25:52 +0100 Subject: [PATCH] Fix motd-carp-state.sh Update the OpenBSD release in our customized motd --- roles/post-install/files/motd-carp-state.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/post-install/files/motd-carp-state.sh b/roles/post-install/files/motd-carp-state.sh index cc29db3..ca917c8 100755 --- a/roles/post-install/files/motd-carp-state.sh +++ b/roles/post-install/files/motd-carp-state.sh @@ -5,6 +5,8 @@ if [ ! -f /etc/motd-original ]; then fi if [ ! -f /tmp/carp.state ]; then + # Raplace OpenBSD version in motd after each boot for it to be up to date after an upgrade + sed -i "1 s/^.*$/$(head -1 \/var\/run\/dmesg.boot)/" /etc/motd-original echo "unknown" > /tmp/carp.state fi