View Single Post
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#12
In kismet_server.cc, gps will come on with the following hack (around line 2540). It turns the GPS on, but you need to shut it off manually (or add UID wrappers around gpsbt_stop, or leave the child running until signaled...).

Code:
#ifdef HAVE_HILDON
                fprintf(stderr, "Waiting for Hildon gps to enable...\n");
                int wpstat = 0;
                int pid = fork(); 
                if (!pid ) {
                        setuid(29999);
                        int gbret = gpsbt_start(NULL, 0, 0, 0 /* default port */, 
                                                status, STATUS_MAX, 
                                                0, &gpsbt_ctx);
                        printf("Hildon BT %d: %s\n", gbret, status);
                        exit(gbret);
                }
                else
                        waitpid(pid, &wpstat, 0 );
                sleep(3);
#endif
 

The Following 2 Users Say Thank You to tz1 For This Useful Post: