mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
Add host maintenance mode and NUT/Tailscale helpers
prox-maintenance-mode.sh saves and clears onboot/startup across all VMs and CTs so a host can be rebooted without guests coming back up, then restores the saved state. Supports --status and --dry-run. nut-udev-restart.sh restarts the NUT UPS driver on a USB re-enumeration event. tailscale-optimize-router.sh applies the recommended UDP GRO forwarding offloads for subnet routers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
927f687863
commit
3ef068e846
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# nut-udev-restart.sh - safely restart NUT UPS driver on USB event
|
||||
# Location: /opt/ergosteur/nut-udev-restart.sh
|
||||
|
||||
(
|
||||
# small delay so the USB device is fully settled before restarting driver
|
||||
sleep 2
|
||||
|
||||
# stop and start the driver
|
||||
/sbin/upsdrvctl stop
|
||||
/sbin/upsdrvctl start
|
||||
) &
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user