summaryrefslogtreecommitdiff
path: root/libopie
Side-by-side diff
Diffstat (limited to 'libopie') (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
@@ -540,30 +540,38 @@ void ODeviceZaurus::init ( )
d-> m_modelstr = "Zaurus SL5000";
d-> m_model = OMODEL_Zaurus_SL5000;
d-> m_vendorstr = "Sharp";
d-> m_vendor = OVENDOR_Sharp;
QFile f ( "/proc/filesystems" );
if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) {
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>
#include <fcntl.h>
#include <sys/ioctl.h>
//#include <asm/sharp_char.h> // including kernel headers is evil ...
#define SHARP_DEV_IOCTL_COMMAND_START 0x5680
#define SHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START)