summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2002-12-18 00:00:51 (UTC)
committer mickeyl <mickeyl>2002-12-18 00:00:51 (UTC)
commit930884a92b064766ed436111778fc55f157c6e1c (patch) (unidiff)
treed3c4b56b4b50f7cf7ef52cc486b377f39aaab044
parent96a9654c2fccce382a4a9ad5d2d0b991b4191468 (diff)
downloadopie-930884a92b064766ed436111778fc55f157c6e1c.zip
opie-930884a92b064766ed436111778fc55f157c6e1c.tar.gz
opie-930884a92b064766ed436111778fc55f157c6e1c.tar.bz2
use system() to start daemon and hopper instead of Global::execute,
which makes nothing but trouble for non-gui processes.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp36
1 files changed, 23 insertions, 13 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 764ef34..0e95b28 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -255,6 +255,12 @@ void Wellenreiter::buttonClicked()
255 255
256 // Stop daemon 256 // Stop daemon - ugly for now... later better
257 257
258 // find out pids of wellenreiterd and orinoco_hopper 258 system( "killall orinoco_hopper" );
259 system( "killall wellenreiterd" );
259 260
261 // FIXME: reset the card trying to get into a usable state again
262
263 // for now, just message the user
264
265 QMessageBox::information( this, "Wellenreiter/Opie", "You should reset your\ndevice before using it again." );
260 } 266 }
@@ -264,2 +270,6 @@ void Wellenreiter::buttonClicked()
264 270
271 logwindow->log( "(i) Daemon has been started." );
272 daemonRunning = true;
273 button->setText( "Stop Scanning" );
274
265 // get configuration from config window 275 // get configuration from config window
@@ -276,8 +286,4 @@ void Wellenreiter::buttonClicked()
276 286
277 logwindow->log( "(i) Daemon has been started." );
278 button->setText( "Stop Scanning" );
279
280#ifdef QWS
281
282 // set interface into monitor mode 287 // set interface into monitor mode
288 /* Global::Execute definitely does not work very well with non-gui stuff! :( */
283 289
@@ -296,4 +302,6 @@ void Wellenreiter::buttonClicked()
296 cmdline += interval; 302 cmdline += interval;
297 //qDebug( "execute: %s", (const char*) cmdline ); 303 cmdline += " &";
298 Global::execute( cmdline ); 304 qDebug( "execute: %s", (const char*) cmdline );
305 system( cmdline );
306 qDebug( "done" );
299 307
@@ -304,8 +312,10 @@ void Wellenreiter::buttonClicked()
304 cmdline += " 3"; 312 cmdline += " 3";
305 //qDebug( "execute: %s", (const char*) cmdline ); 313 cmdline += " &";
306 Global::execute( cmdline );
307#endif
308 314
309 /* 315 qDebug( "execute: %s", (const char*) cmdline );
316 system( cmdline );
317 qDebug( "done" );
310 318
319 /*
320
311 // add some test stations, so that we can see if the GUI part works 321 // add some test stations, so that we can see if the GUI part works