mint.sh aktualisiert
This commit is contained in:
parent
ba897cf811
commit
cecd1a07ac
12
mint.sh
12
mint.sh
@ -15,6 +15,18 @@ Nutzung auf einene Gefahr!!! Nur mit Enter/Return fortfahren wenn dieses Skript
|
|||||||
|
|
||||||
whoami | grep -q ^root$ || read x
|
whoami | grep -q ^root$ || read x
|
||||||
|
|
||||||
|
# Check for using DoHoT
|
||||||
|
if [ -s /etc/dontusedohot ]
|
||||||
|
then
|
||||||
|
[ -s /etc/systemd/resolved.conf.d/DoHoT.conf ] && rm -f /etc/systemd/resolved.conf.d/DoHoT.conf
|
||||||
|
else
|
||||||
|
echo "[Resolve]
|
||||||
|
DNS=127.0.0.55
|
||||||
|
Domains=~." | sudo tee /etc/systemd/resolved.conf.d/DoHoT.conf
|
||||||
|
systemctl restart systemd-resolved.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# identify default user
|
# identify default user
|
||||||
defaultuser=$(getent passwd 1000 | cut -d: -f1)
|
defaultuser=$(getent passwd 1000 | cut -d: -f1)
|
||||||
defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
||||||
|
Loading…
Reference in New Issue
Block a user