-rw-r--r-- | libopie2/opiecore/linux/opcmciasystem.cpp | 7 | ||||
-rw-r--r-- | libopie2/opiecore/linux/opcmciasystem.h | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/libopie2/opiecore/linux/opcmciasystem.cpp b/libopie2/opiecore/linux/opcmciasystem.cpp index 21c5a84..9f151ce 100644 --- a/libopie2/opiecore/linux/opcmciasystem.cpp +++ b/libopie2/opiecore/linux/opcmciasystem.cpp @@ -156,2 +156,9 @@ OPcmciaSocket* OPcmciaSystem::socket( unsigned int number ) +void OPcmciaSystem::restart() +{ + //FIXME Use OProcess or something that allows more control + ::system( "/etc/init.d/pcmcia restart" ); +} + + OPcmciaSystem* OPcmciaSystem::instance() diff --git a/libopie2/opiecore/linux/opcmciasystem.h b/libopie2/opiecore/linux/opcmciasystem.h index 23d8c41..fecbb21 100644 --- a/libopie2/opiecore/linux/opcmciasystem.h +++ b/libopie2/opiecore/linux/opcmciasystem.h @@ -71,3 +71,3 @@ class OPcmciaSystem : public QObject /** - * @returns a pointer to the (one and only) @ref OSystem instance. + * @returns a pointer to the (one and only) @ref OSystem instance */ @@ -75,3 +75,3 @@ class OPcmciaSystem : public QObject /** - * @returns an iterator usable for iterating through all sound cards. + * @returns an iterator usable for iterating through all sound cards */ @@ -84,2 +84,6 @@ class OPcmciaSystem : public QObject /** + * Restarts the subsystem + */ + void restart(); + /** * @internal Rebuild the internal database |