This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/scripts/vyos-postconfig-bootup.script

27 lines
833 B
Text
Raw Normal View History

2023-03-29 13:30:45 -05:00
#!/bin/sh
# This script is executed at boot time after VyOS configuration is fully
# applied. Any modifications required to work around unfixed bugs or use
# services not available through the VyOS CLI system can be placed here.
# Add dotfiles for home directory
2023-05-02 08:36:56 -05:00
tee /home/vyos/.gitconfig <<END >/dev/null
2023-03-29 13:30:45 -05:00
[init]
defaultBranch = main
[safe]
directory = /config
[user]
email = joe@veri.dev
name = Joseph Hanson
END
# Add bash aliases for home directory
2023-05-02 08:36:56 -05:00
tee -a /home/vyos/.bash_aliases <<END >/dev/null
2023-03-29 13:30:45 -05:00
export SOPS_AGE_KEY_FILE=/config/secrets/age.key
export GIT_SSH_COMMAND="ssh -i /config/secrets/id_ed25519"
2024-01-04 09:38:19 -06:00
export VISUAL=vim
export EDITOR=vim
2023-03-29 13:30:45 -05:00
alias podman="sudo podman"
END
# Force X550 NIC to 2.5Gbps autonegotiation. Fixes a Intel driver issue.
2024-01-04 09:38:19 -06:00
#ethtool -s eth0 speed 2500 duplex full autoneg on
systemctl start nextdns