Diffstat (limited to 'libopie2/opiecore/linux/opcmciasystem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/linux/opcmciasystem.cpp | 7 |
1 files changed, 7 insertions, 0 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 | |||
@@ -145,24 +145,31 @@ int OPcmciaSystem::cardCount() const | |||
145 | ++it; | 145 | ++it; |
146 | } | 146 | } |
147 | return nonEmpty; | 147 | return nonEmpty; |
148 | } | 148 | } |
149 | 149 | ||
150 | 150 | ||
151 | OPcmciaSocket* OPcmciaSystem::socket( unsigned int number ) | 151 | OPcmciaSocket* OPcmciaSystem::socket( unsigned int number ) |
152 | { | 152 | { |
153 | return _interfaces.at( number ); | 153 | return _interfaces.at( number ); |
154 | } | 154 | } |
155 | 155 | ||
156 | 156 | ||
157 | void OPcmciaSystem::restart() | ||
158 | { | ||
159 | //FIXME Use OProcess or something that allows more control | ||
160 | ::system( "/etc/init.d/pcmcia restart" ); | ||
161 | } | ||
162 | |||
163 | |||
157 | OPcmciaSystem* OPcmciaSystem::instance() | 164 | OPcmciaSystem* OPcmciaSystem::instance() |
158 | { | 165 | { |
159 | if ( !_instance ) _instance = new OPcmciaSystem(); | 166 | if ( !_instance ) _instance = new OPcmciaSystem(); |
160 | return _instance; | 167 | return _instance; |
161 | } | 168 | } |
162 | 169 | ||
163 | 170 | ||
164 | OPcmciaSystem::CardIterator OPcmciaSystem::iterator() const | 171 | OPcmciaSystem::CardIterator OPcmciaSystem::iterator() const |
165 | { | 172 | { |
166 | return OPcmciaSystem::CardIterator( _interfaces ); | 173 | return OPcmciaSystem::CardIterator( _interfaces ); |
167 | } | 174 | } |
168 | 175 | ||