From 4a3d5f3d66ee7f552b7dd180c840e3d54570d0ce Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 2 Aug 2020 23:32:20 +0200 Subject: [PATCH] Fix a minor snafu in the Kobo startup script. (#6466) Oops, too much Python/Lua ^^. --- platform/kobo/koreader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index c26a15cf8..56fcb6824 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -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