I copied part of your patch to eten.py in the same directory
/usr/lib/python2.6/site-packages/framework/subsystems/ogpsd. I wonder
if the module is still in use.

--- eten.py.orig        2010-05-12 00:35:37.000000000 +0200
+++ eten.py     2010-05-21 20:55:15.000000000 +0200
@@ -10,7 +10,15 @@
 GPLv2 or later
 """

-DEVICE_POWER_PATH = "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron"
+DEVICE_POWER_PATH_OLD = "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron"
+DEVICE_POWER_PATH_NEW = "/sys/bus/platform/devices/neo1973-pm-gps.0/power_on"
+
+# Check which path exists, defaulting to the new path.
+if os.path.exists(DEVICE_POWER_PATH_OLD):
+    DEVICE_POWER_PATH = DEVICE_POWER_PATH_OLD
+else:
+    DEVICE_POWER_PATH = DEVICE_POWER_PATH_NEW
+

 from nmea import NMEADevice
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to