One slight issue after doing this – the router became very unresponsive, high CPU, RAM nearly maxed out. My original script caused nothing like this, but adding one truncate line seemed to choke things. Even deleting the truncate line from my script and rebooting the router didn't seem to fix things, so I re-installed the original firmware.
Maybe I'll try again, but perhaps truncate was omitted from BusyBox for a reason, or the 'opkg upgrade' borked something? I'm not knowledgeable enough to figure out what happened, just rolled back to my last config.