knc1 -- Pure copy-paste.

Although I stripped out the platform test and the duplicated SCRIPT (I would've tried to use sed to replace the size based on a variable from the platform test).
Is it the missing EOF in the heredoc? Made me wonder too -- but apparently the Kindle consumes it just fine.