Could you share what you did to put it into jffs? Pretty sure I didn't do something right when I tried testing this out. Thanks.As for me, I put fake-hwclock right into JFFS partition, it's just a shell script. Check this out, router got actual time at 7 second of boot. \w/
U may go ahead with @Calisro's suggestion that shall solve ur problem.
opkg install fake-hwclock
cp /opt/bin/fake-hwclock /jffs/scripts/
opkg remove fake-hwclock
# cat /jffs/scripts/init-start
#!/bin/sh
/jffs/scripts/fake-hwclock load
# cat /jffs/scripts/services-stop
#!/bin/sh
/jffs/scripts/fake-hwclock save
Yes.. Agreed. I just thought it should be daemonized. cru would work though.Sure. That's why it's called *fake*-hwclock, no any script can bring a real time clock to router. You may run fake-hwclock from cron once per hour (if ±½ of hour accuracy is acceptable for your needs).
export TZ=$(cat /etc/TZ)
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!