From b1235df3628d178891eeefed630a22da46b25952 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 12 Jun 2004 16:54:50 +0000 Subject: - refactor the distribution detection code - add detection of OpenEmbedded and generic linux distributions - simplify the zaurus model detection code --- (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index efe35e7..16c0538 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp @@ -138,8 +138,6 @@ void iPAQ::init(const QString& model) else d->m_model = Model_Unknown; - - switch ( d->m_model ) { case Model_iPAQ_H31xx: case Model_iPAQ_H38xx: @@ -158,29 +156,6 @@ void iPAQ::init(const QString& model) } - QFile f( "/etc/familiar-version" ); - if ( f. open ( IO_ReadOnly )) { - d->m_systemstr = "Familiar"; - d->m_system = System_Familiar; - - QTextStream ts ( &f ); - d->m_sysverstr = ts. readLine(). mid ( 10 ); - - f. close(); - } else { - f. setName ( "/etc/oz_version" ); - - if ( f. open ( IO_ReadOnly )) { - d->m_systemstr = "OpenEmbedded/iPaq"; - d->m_system = System_Familiar; - - QTextStream ts ( &f ); - ts.setDevice ( &f ); - d->m_sysverstr = ts. readLine(); - f. close(); - } - } - m_leds [0] = m_leds [1] = Led_Off; m_power_timer = 0; -- cgit v0.9.0.2