summaryrefslogtreecommitdiff
path: root/shutdown-if-no-sessions
blob: 285eb7031e00c8c9955016a186b28c1edc67cc15 (plain)
1
2
3
4
#!/bin/sh
if ! who | grep -e tty -e pts; then
	systemctl poweroff
fi