Fix a minor snafu in the Kobo startup script. (#6466)

Oops, too much Python/Lua ^^.
This commit is contained in:
NiLuJe
2020-08-02 23:32:20 +02:00
committed by GitHub
parent 9e0ac734ba
commit 4a3d5f3d66

View File

@@ -230,7 +230,7 @@ ko_do_fbdepth() {
# Fun fact: this wouldn't be necessary if Kobo were using a non-prehistoric glibc... (it was fixed in glibc 2.26).
ko_do_dns() {
# If there aren't any servers listed, append CloudFlare's
if not grep -q '^nameserver' "/etc/resolv.conf"; then
if ! grep -q '^nameserver' "/etc/resolv.conf"; then
echo "# Added by KOReader because your setup is broken" >>"/etc/resolv.conf"
echo "nameserver 1.1.1.1" >>"/etc/resolv.conf"
fi