summaryrefslogtreecommitdiff
path: root/libopie/odevice.cpp
Side-by-side diff
Diffstat (limited to 'libopie/odevice.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 9871e80..3bc1e0c 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -548,14 +548,22 @@ void ODeviceZaurus::init ( )
d-> m_systemstr = "OpenZaurus";
d-> m_system = OSYSTEM_OpenZaurus;
f. close ( );
+
+ f. setName ( "/etc/oz_version" );
+ if ( f. open ( IO_ReadOnly )) {
+ QTextStream ts ( &f );
+ d-> m_sysverstr = ts. readLine ( ). mid ( 10 );
+ f. close ( );
+ }
}
else {
d-> m_systemstr = "Zaurus";
d-> m_system = OSYSTEM_Zaurus;
}
+
d-> m_leds [0] = OLED_Off;
}
#include <unistd.h>