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

25 lines
No EOL
805 B
Bash
Executable file

#!/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
tee /home/vyos/.gitconfig <<END >/dev/null
[init]
defaultBranch = main
[safe]
directory = /config
[user]
email = joe@veri.dev
name = Joseph Hanson
END
# Add bash aliases for home directory
tee -a /home/vyos/.bash_aliases <<END >/dev/null
export SOPS_AGE_KEY_FILE=/config/secrets/age.key
export GIT_SSH_COMMAND="ssh -i /config/secrets/id_ed25519"
export VISUAL=vi
export EDITOR=vi
alias podman="sudo podman"
END
# Force X550 NIC to 2.5Gbps autonegotiation. Fixes a Intel driver issue.
ethtool -s eth0 speed 2500 duplex full autoneg on