- Updated dename to detect helloSystem and FreeBSD DEs

This commit is contained in:
Ben Reaves
2021-01-02 19:38:34 -05:00
parent 98d530921f
commit 52d2cac4f7
8 changed files with 46 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# /usr/local/bin/logoff.sh
while true; do
w | grep -E "$1.*$2" > /dev/null 2>&1 || (sudo systemctl stop xkeysnail && sudo pkill -f logoff)