mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
15 lines
453 B
Bash
15 lines
453 B
Bash
OMARCHY_DESCRIPTION="SSH Flakiness Fix"
|
|
|
|
omarchy_install() {
|
|
# Solve common flakiness with SSH
|
|
echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf
|
|
}
|
|
|
|
omarchy_verify() {
|
|
[[ -f /etc/sysctl.d/99-sysctl.conf ]] || add_error "Sysctl config file missing"
|
|
|
|
if [[ -f /etc/sysctl.d/99-sysctl.conf ]]; then
|
|
grep -q "net.ipv4.tcp_mtu_probing=1" /etc/sysctl.d/99-sysctl.conf || add_error "TCP MTU probing not configured"
|
|
fi
|
|
}
|