Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 193125 Details for
Bug 272073
simple swclock init.d script to save/restore time in place of broken hwclock
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
setsystimefromfile.c
setsystimefromfile.c (text/plain), 422 bytes, created by
michael@smith-li.com
on 2009-06-01 11:21:45 UTC
(
hide
)
Description:
setsystimefromfile.c
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2009-06-01 11:21:45 UTC
Size:
422 bytes
patch
obsolete
>/** > * Hack to set the clock at boot via the > * mtime of a file that should have been > * touched at the previous shutdown. > **/ > >#include <sys/types.h> >#include <sys/stat.h> >#include <unistd.h> >#include <sys/time.h> > >// TODO: Take a filename argument >int main(char *argv[]) { > struct stat buf; > char *timestorefile = "/etc/SHUTDOWNTIME"; > if (stat(timestorefile, &buf) < 0) return 1; > stime(&(buf.st_mtime)); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 272073
: 193125 |
193126