packer/alpine-linux: delete MOTD (and related terminal mode resetting)

The default alpine MOTD is not really helpful, it may be even confusing,
inviting users to run setup-alpine. Remove it entirely.

I no longer see issues that need resetting terminal mode, removing the related
code.
This commit is contained in:
Gianluca Merlo 2022-11-21 23:29:01 +01:00
parent 517f612664
commit c966d92ab0

View File

@ -44,8 +44,8 @@ sed -i -E '/zebra|bgp|ospf|rip|isis|pim|ldp|eigrp|static|bfd/ s/= *no/=yes/' /et
echo "service integrated-vtysh-config" > /etc/frr/vtysh.conf
chown frr:frr /etc/frr/vtysh.conf
# reset terminal modes
sed -i "$(printf '1i\e[?5l\e[?7h\e[?8h')" /etc/motd
# Remove default Alpine MOTD
truncate -s 0 /etc/motd
# run vtysh in .profile
cat > /root/.profile << 'EOF'