This file is indexed.

/usr/lib/python2.7/dist-packages/framework/subsystems/ogpsd/eten.py is in fso-frameworkd 0.10.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Open GPS Daemon

(C) 2008 Jan 'Shoragan' Lübbe <jluebbe@lasnet.de>
(C) 2008 Daniel Willmann <daniel@totalueberwachung.de>
(C) 2008 Stefan Schmidt <stefan@datenfreihafen.org>
(C) 2008 Openmoko, Inc.
GPLv2 or later
"""

DEVICE_POWER_PATH = "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron"

from nmea import NMEADevice

import helpers

import logging
logger = logging.getLogger('ogpsd')

class EtenDevice( NMEADevice ):
    """E-Ten specific GPS device"""

    def __init__( self, bus, channel ):

        # Make sure the GPS is off
        helpers.writeToFile( DEVICE_POWER_PATH, "0" )

        NMEADevice.__init__( self, bus, channel )

    def initializeDevice( self ):
        helpers.writeToFile( DEVICE_POWER_PATH, "1" )

        NMEADevice.initializeDevice( self )

    def shutdownDevice( self ):

        NMEADevice.shutdownDevice( self )

        helpers.writeToFile( DEVICE_POWER_PATH, "0" )

#vim: expandtab