mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add omarchy-doctor
This commit is contained in:
@@ -1,2 +1,14 @@
|
||||
# Solve common flakiness with SSH
|
||||
echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user