Add scripts/backtotty.sh
This commit is contained in:
7
scripts/backtotty.sh
Normal file
7
scripts/backtotty.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
systemctl stop sddm
|
||||||
|
systemctl restart getty@tty1.service
|
||||||
|
pkill -u admin -9 2>/dev/null || true
|
||||||
|
pkill -f "lxqt" 2>/dev/null || true
|
||||||
|
pkill -u admin -f "lxqt-" 2>/dev/null || true
|
||||||
|
chvt 1
|
||||||
Reference in New Issue
Block a user