summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/linux/opcmciasystem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopie2/opiecore/linux/opcmciasystem.cpp b/libopie2/opiecore/linux/opcmciasystem.cpp
index 054d261..eae356e 100644
--- a/libopie2/opiecore/linux/opcmciasystem.cpp
+++ b/libopie2/opiecore/linux/opcmciasystem.cpp
@@ -91,13 +91,16 @@ OPcmciaSystem::OPcmciaSystem()
void OPcmciaSystem::synchronize()
{
qDebug( "OPcmciaSystem::synchronize()" );
_interfaces.clear();
- //FIXME: Use cardmgr subsystem ioctls
+ //NOTE: We _could_ use ioctl's here as well, however we want to know if
+ // the card is recognized by the cardmgr (hence has a valid binding)
+ // If it is not recognized yet, userland may want to provide a configuration dialog
+ //TODO: Revise for pcmciautils
QString fileName;
if ( QFile::exists( "/var/run/stab" ) ) { fileName = "/var/run/stab"; }
else if ( QFile::exists( "/var/state/pcmcia/stab" ) ) { fileName = "/var/state/pcmcia/stab"; }
else { fileName = "/var/lib/pcmcia/stab"; }
QFile cardinfofile( fileName );