14 lines
212 B
Plaintext
Executable File
14 lines
212 B
Plaintext
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p inetutils -p systemd
|
|
|
|
target="$1"
|
|
host="$(hostname)"
|
|
if [ "$host" = "$target" ]
|
|
then
|
|
sudo shutdown now
|
|
else
|
|
echo "WRONG MACHINE. you're on $host."
|
|
exit 1
|
|
fi
|
|
|