]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gpe-conf / gpe-conf-0.1.20 / hwclock.patch
1 Index: suid.c
2 ===================================================================
3 RCS file: /cvs/gpe/base/gpe-conf/suid.c,v
4 retrieving revision 1.52
5 diff -u -r1.52 suid.c
6 --- suid.c      16 Oct 2004 16:03:43 -0000      1.52
7 +++ suid.c      25 Oct 2004 15:00:56 -0000
8 @@ -95,6 +95,7 @@
9         }
10         else                    // if ok, update rtc time
11         {
12 +               system("/sbin/hwclock --systohc");
13                 system ("echo > /var/spool/at/trigger");
14         }
15         g_free(tstr);
16 @@ -337,11 +338,11 @@
17                                         time_t t;
18                                         fscanf (in, "%ld", &t);
19                                         if (stime (&t) == -1)
20 -                                               fprintf (stderr,
21 -                                                        "Error while setting the time: %d\n",
22 -                                                        errno);
23 +                                               fprintf (stderr, "Error while setting the time: %d\n",
24 +                                                        errno);
25                                         else    // if ok, update rtc time
26                                         {
27 +                                               system("/sbin/hwclock --systohc");
28                                                 system ("echo > /var/spool/at/trigger");
29                                         }
30                                 }