mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 03:07:48 +00:00
Bruno Fontes
6c66d88068
Laptop battery is not working, so when the clock is wrong, my DNS server does not works (because of DNSSEC) and it makes the clock to not be able to update properly. So this script changes the DNS to Quad9 and forces update the clock time before changing it back to my DNS server.
12 lines
250 B
Desktop File
12 lines
250 B
Desktop File
[Unit]
|
|
Description=Test and fix DNS update with wrong time
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart = /bin/bash /home/bruno/Apps/linuxShortcuts/Services/fixDNS.sh
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|