11 lines
276 B
Nix
11 lines
276 B
Nix
with import <nixpkgs> {};
|
|
|
|
pkgs.writeShellScriptBin "sshpc" ''
|
|
#!/bin/sh
|
|
|
|
ssh -p 23 root@tudbut.de etherwake 00:19:99:d2:9e:27
|
|
sleep 10
|
|
ssh -tp 23 root@tudbut.de ssh -t tudbut@192.168.178.144
|
|
ssh -p 23 root@tudbut.de ssh tudbut@192.168.178.144 sudo systemctl suspend
|
|
''
|
|
|