Fix motd-carp-state.sh

Update the OpenBSD release in our customized motd
This commit is contained in:
Jérémy Dubois 2021-02-15 18:25:52 +01:00
parent 7fc4e0c7d7
commit b3496692b2
1 changed files with 2 additions and 0 deletions

View File

@ -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