You're caught in a catch-22 here. You need WiFi enabled for the functionality of Kobo-Grive-Sync, however, as soon as you connect via WiFi, Kobo will detect an upgrade available to your firmware, and download it.

Hi!
For those of you who are having trouble using that gmail to google drive script because it is putting your books in the wrong folder, there is an easy workaround by adding 2 lines to the script that tells it to use the folder ID instead of the name.

Step 1: Open the folder you want the books to be stored in. For me this is called books. From the address bar, copy everything that comes after "folders/"
For example, mine is "0B5iGhZr6jmEtMS01Yjg5Y2VkYy05MTNiLTQxZTAtODM1Yi1j NGZiZjllODhjODQ"

Step 4: Save.
Reinitialize the script, and you should be good!
Of course, now the field in the spreadsheet won't change anything anymore, but it doesn't really matter since you are probably only using this to send things to your kobo!

I'm trying to do this, is it really necessary to prevent the register part of it?

I tried erasing the update block, and changing "KoboRoot.tgz" to something else as pointed by Thomas but after reboot the kobo conects to the wifi and automatically download the most recent version...

Any Help?? Thanks!!

I guess it's not neded to prevent the register part of it, and about the downloading of the most recent version, if you have made the suggested changes, the downloaded file won't be installed, so the downloading is no problem.

Sure would like this to work on 2.8.1 firmware. I don't like to downgrade.

The "traditional" hack to avoid having to deal with the Kobo servers:
[from a post of "tshering"]
Anyway,
in order to initialize the reader without registering you can add a new line to the "user" table of the database. Fill in any fitting values. Depending on your reset firmware version, the number of values varies.
Example for FW 1.9.12:

I think you use the SQLite Database Browser. Right? Open the database file "KoboReader.sqlite". Select "Browse Data" and choose the table "user". Look at line 1 and try to establish whether the values of one of the two examples might fit or whether you have to make some modifications. I guess the second example might be correct for the Mini. Choose Execute SQL, enter the command "INSERT INTO user VALUES ..." and press "Execute query".

As you can see you just replace each of the user value entries with a "0" except the last. You will have a different number of value fields depending on the firmware, just check how many are there before making the change.

I keep a zeroed out copy of KoboReader.sqlite on my PC in case of a corrupted database issue and/or a factory reset.

Sure would like this to work on 2.8.1 firmware. I don't like to downgrade.

I have Kobo Touch N905B model. Current firmware for N905B is 2.5.2. It was updated to 2.6.1 and I tried to debug/solve the problem, but I didn't get far. Somehow curl (dependency of grive) and grive just exit with error code and nothing else. After factory reset I was back to 2.5.2 and now it works for me.

I don't like to install firmware with direct link.. Maybe someone with 2.8.1 firmware and device could develop a fix to this problem? Build scripts for grive and curl can be found from https://github.com/softapalvelin/kobo-grive.