Fix motd-carp-state.sh
Update the OpenBSD release in our customized motd
This commit is contained in:
parent
7fc4e0c7d7
commit
b3496692b2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue