mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
fix(nixos): wol broken
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env nu
|
||||
|
||||
ls /sys/class/net | get name | path basename | where $it != "lo" | each {|iface|
|
||||
print $"Enabling WoL on ($iface)..."
|
||||
try {
|
||||
ethtool -s $iface wol g
|
||||
print $"Successfully enabled WoL on ($iface)"
|
||||
} catch {
|
||||
print $"Failed to enable WoL on ($iface). It might not be supported."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user