mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-04-16 23:38:55 +00:00
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:
parent
517f612664
commit
c966d92ab0
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user