View previous topic :: View next topic |
Author |
Message |
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Wed Mar 02, 2011 4:24 pm Post subject: setting the date from internet |
|
|
Hello list. I am running gentoo on an old powerbook g4. For some reason I can't set the system clock unless I boot into openfirmware. The problem is that this laptop has a dead battery so if for some reason the power goes off, then the system clock gets reset to 1969.
This is happening quite often, so I thought it might be better to have a script checking the date online at boot-time and actualizing it (date -s works fine for me). I know this is more like a workaround than a solution, but is it a good one? if so, any suggestions as to where to get the date from?
Thanks,
R. |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Wed Mar 02, 2011 4:32 pm Post subject: |
|
|
How about "rc-update add ntp-client default"? _________________ “And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010 |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
potuz Guru
Joined: 30 Jan 2010 Posts: 378
|
Posted: Wed Mar 02, 2011 4:50 pm Post subject: |
|
|
Thanks for the quick reply. I'll look into getting the info from an NTP server. A cmos battery would be an option, but I'm lazy enough to open the laptop and look for a replacement here in Brazil. I'm not running any DE nor WM in it since I'm using it mainly as a DLNA server.
R. |
|
Back to top |
|
|
|