OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: Miami_Bob on February 08, 2005, 05:47:28 pm

Title: Its Not 1970 Anymore!
Post by: Miami_Bob on February 08, 2005, 05:47:28 pm
I decided to give OZ/Opie another shot.

It there EVER going to be a release where the date does NOT revert to 01 Jan 1970 EACH & EVERY time the user is forced to reboot (like at the frequent lock ups!)?

I, for one, do not consider this a "trivial" bug.
Title: Its Not 1970 Anymore!
Post by: Mickeyl on February 08, 2005, 06:16:33 pm
(double post)
Title: Its Not 1970 Anymore!
Post by: Mickeyl on February 08, 2005, 06:17:06 pm
I don't like your agressive tone, but anyway, the sltime utility should fix that. If it bugs you that much, why not try to dive into the cause and giving a shot at fixing it? After all, that's what Open Source is about - fixing issues and sharing.
Title: Its Not 1970 Anymore!
Post by: lardman on February 08, 2005, 07:05:11 pm
I agree with this (the time not defaulting to 1970) - the opie time applet should default to 1/1/2005 IMHO.

I also agree with Mickeyl, it's not hard to fix, a simple one line code change, but it needs to be submitted to the opie folks I imagine.


Si
Title: Its Not 1970 Anymore!
Post by: Mickeyl on February 08, 2005, 08:07:11 pm
Well, the issue here is not only the default date, but also the reverting at all - which is (as you all know of course) a hardware bug. So, the question is how to workaround in the most sane way. One way is what the sltime utility does, saving the time into flash on shutdown/reboot and restoring during rcS. This won't help against forced resets though.
Title: Its Not 1970 Anymore!
Post by: Miami_Bob on February 09, 2005, 02:00:42 am
Quote
I don't like your agressive tone,

Geee, here I thought that I was simply making a long overdue point.

Quote
but anyway, the sltime utility should fix that. If it bugs you that much, why not try to dive into the cause and giving a shot at fixing it? After all, that's what Open Source is about - fixing issues and sharing.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66194\"][{POST_SNAPBACK}][/a][/div]

Well, up until the week before Xmas last I was portal to portal 12-15 hrs a work day on employment where programming and computers were not related to my primary job function.

Also, I have serious vision impairments and a serious progressive essential tremor of the left hand & arm.

Does THAT offer a little clue, Mr Agressive Tone?

You get pretty short tempered yourself with most anyone who finds any short comings in or makes suggestions about OZ/Opie, IMHO.

I share whatever I can and think that I'm doing not so bad with less than one year's worth of real Linux & Zaurus experience under my belt (of course having about 25 years of NON Linux/Zaurus experience, including 80x86 machine code programming doesn't hurt in that regards).

Lighten up, Mickeyl. You will get a lot more users by working with us rather than being so defensive, IMHO.

Now, since I get no hits on it, care to expand just a tinsy bit on the use, care & feeding of the sltime utility?
Title: Its Not 1970 Anymore!
Post by: lardman on February 09, 2005, 06:37:12 am
Some sltime links:

https://www.oesf.org/forums/index.php?showt...=9271&hl=sltime (https://www.oesf.org/forums/index.php?showtopic=9271&hl=sltime)
https://www.oesf.org/forums/index.php?showt...=9190&hl=sltime (https://www.oesf.org/forums/index.php?showtopic=9190&hl=sltime)


Si
Title: Its Not 1970 Anymore!
Post by: dz on February 09, 2005, 07:56:16 am
Right.  How about we drop the whole personal issues here and discuss fixing the time bug.  

I can see this heading in the wrong direction very quickly.  After my post, no more personal attacks.

Thanks.
Title: Its Not 1970 Anymore!
Post by: adf on February 09, 2005, 02:14:36 pm
huh. I'm kinda surprised this is an issue, but while the thread is up...

I had always wondered why 1970, particularly. My experience in the date/time reset stuff has mostly been bios , though some software, that reverts to the day it was buned/published. That always made me wonder if some really ancient bit o unix was lurking in OZ that had gone stable in 1970, hence the consistant use of that year. ( i realize it is far fetched, but you have to admit the consistency is striking and invites wild speculation)

On the other hand, there are things much further up my agenda for my Z, and for OZ, I suspect.
(like the hostap, kernel 2.6 and hitachi video acceleration for the 6k that I just know is being feverishly persued at this very moment)
Title: Its Not 1970 Anymore!
Post by: Mickeyl on February 09, 2005, 02:16:49 pm
http://www.gnu.org/software/shishi/manual/...-the-Epoch.html (http://www.gnu.org/software/shishi/manual/html_node/Seconds-since-the-Epoch.html)
Title: Its Not 1970 Anymore!
Post by: adf on February 09, 2005, 02:20:37 pm
lmao. I was on the right track after all.
Title: Its Not 1970 Anymore!
Post by: Miami_Bob on February 09, 2005, 06:35:18 pm
Quote
Some sltime links:

 (.............)

Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66257\"][{POST_SNAPBACK}][/a][/div]

 Thanks, Si. I must have misspelled. Damn left side tremor is getting to be a major keyboard PITA. Couple it with major vision problems and even triple checking sometimes fails to catch the typos.

Quote
Right. How about we drop the whole personal issues here and discuss fixing the time bug.

Sorry about the snap back, dz. Compensating for being multiple disabled can at times be frustrating in the extreme. Flame off.
Title: Its Not 1970 Anymore!
Post by: lpotter on February 09, 2005, 06:45:06 pm
try putting this into your /etc/init.d/ directory, naming it date.sh and then
ln -s /etc/init.d/date.sh /etc/rc2.d/S22date.sh

Code: [Select]
#!/bin/bash
DATEFILE=/etc/default/lastdate
case "$1" in
  start)
    if [ ! -e $DATEFILE ]; then
    LASTDATETIME=010108002005
    else
    . $DATEFILE
    fi
    date -u $LASTDATETIME
      ;;
  stop)
    echo "LASTDATETIME=`/bin/date -u +%m%d%H%M%G`" > $DATEFILE
       ;;
  restart)
        $0 stop
        $0 start
       ;;
  *)
        echo "Usage: date.sh {start|stop|restart}"
        exit 1
esac

exit 0
Title: Its Not 1970 Anymore!
Post by: Miami_Bob on February 10, 2005, 04:55:04 pm
Quote
try putting this into your /etc/init.d/ directory, naming it date.sh and then
ln -s /etc/init.d/date.sh /etc/rc2.d/S22date.sh

  (..............)

[div align=\"right\"][a href=\"index.php?act=findpost&pid=66343\"][{POST_SNAPBACK}][/a][/div]

Thanks for the tip. I'll definitely patch this in the next time that I restore and NAND of OZ/Opie.