author | llornkcor <llornkcor> | 2002-11-10 01:12:01 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-10 01:12:01 (UTC) |
commit | d8bf328c4dfa2b33e2c5761c7af3b39ec307abee (patch) (unidiff) | |
tree | b1185b0970076d4c76c358b8c96b696ae37270e1 | |
parent | 12aa2d36cdd22cbde571716db4da302159c718fd (diff) | |
download | opie-d8bf328c4dfa2b33e2c5761c7af3b39ec307abee.zip opie-d8bf328c4dfa2b33e2c5761c7af3b39ec307abee.tar.gz opie-d8bf328c4dfa2b33e2c5761c7af3b39ec307abee.tar.bz2 |
fix system version string for zaurus
-rw-r--r-- | libopie/odevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 7d8cdbf..25c9826 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -729,49 +729,49 @@ int iPAQ::lightSensorResolution ( ) const | |||
729 | * Zaurus | 729 | * Zaurus |
730 | * | 730 | * |
731 | **************************************************/ | 731 | **************************************************/ |
732 | 732 | ||
733 | 733 | ||
734 | 734 | ||
735 | void Zaurus::init ( ) | 735 | void Zaurus::init ( ) |
736 | { | 736 | { |
737 | d-> m_modelstr = "Zaurus SL5000"; | 737 | d-> m_modelstr = "Zaurus SL5000"; |
738 | d-> m_model = Model_Zaurus_SL5000; | 738 | d-> m_model = Model_Zaurus_SL5000; |
739 | d-> m_vendorstr = "Sharp"; | 739 | d-> m_vendorstr = "Sharp"; |
740 | d-> m_vendor = Vendor_Sharp; | 740 | d-> m_vendor = Vendor_Sharp; |
741 | 741 | ||
742 | QFile f ( "/proc/filesystems" ); | 742 | QFile f ( "/proc/filesystems" ); |
743 | 743 | ||
744 | if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) { | 744 | if ( f. open ( IO_ReadOnly ) && ( QTextStream ( &f ). read ( ). find ( "\tjffs2\n" ) >= 0 )) { |
745 | d-> m_systemstr = "OpenZaurus"; | 745 | d-> m_systemstr = "OpenZaurus"; |
746 | d-> m_system = System_OpenZaurus; | 746 | d-> m_system = System_OpenZaurus; |
747 | 747 | ||
748 | f. close ( ); | 748 | f. close ( ); |
749 | 749 | ||
750 | f. setName ( "/etc/oz_version" ); | 750 | f. setName ( "/etc/oz_version" ); |
751 | if ( f. open ( IO_ReadOnly )) { | 751 | if ( f. open ( IO_ReadOnly )) { |
752 | QTextStream ts ( &f ); | 752 | QTextStream ts ( &f ); |
753 | d-> m_sysverstr = ts. readLine ( ). mid ( 10 ); | 753 | d-> m_sysverstr = ts. readLine ( );//. mid ( 10 ); |
754 | f. close ( ); | 754 | f. close ( ); |
755 | } | 755 | } |
756 | } | 756 | } |
757 | else { | 757 | else { |
758 | d-> m_systemstr = "Zaurus"; | 758 | d-> m_systemstr = "Zaurus"; |
759 | d-> m_system = System_Zaurus; | 759 | d-> m_system = System_Zaurus; |
760 | } | 760 | } |
761 | 761 | ||
762 | 762 | ||
763 | m_leds [0] = Led_Off; | 763 | m_leds [0] = Led_Off; |
764 | } | 764 | } |
765 | 765 | ||
766 | #include <unistd.h> | 766 | #include <unistd.h> |
767 | #include <fcntl.h> | 767 | #include <fcntl.h> |
768 | #include <sys/ioctl.h> | 768 | #include <sys/ioctl.h> |
769 | 769 | ||
770 | //#include <asm/sharp_char.h> // including kernel headers is evil ... | 770 | //#include <asm/sharp_char.h> // including kernel headers is evil ... |
771 | 771 | ||
772 | #define SHARP_DEV_IOCTL_COMMAND_START 0x5680 | 772 | #define SHARP_DEV_IOCTL_COMMAND_START 0x5680 |
773 | 773 | ||
774 | #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) | 774 | #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START) |
775 | #define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) | 775 | #define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START) |
776 | 776 | ||
777 | #define SHARP_BUZ_TOUCHSOUND 1 /* touch panel sound */ | 777 | #define SHARP_BUZ_TOUCHSOUND 1 /* touch panel sound */ |