Thanks Teddy Bear. Compared the firmware I found in my Ubuntu with the one you pointed to, they are exactly the same. It works right now with the script after found out the device ID. I did not bother to change jffs folder from read only, just copied the firmware to tmp folder and cat it to printer. Thanks again and now my router works exactly the way I want with printer and storage sharing both work like a charm.