X-Git-Url: http://git.pjr.cc/?p=CBFWR.git;a=blobdiff_plain;f=bin%2Fcbfwrd.php;h=d2a0e833e8ac671f106ebf74ccb24c801dfa19a1;hp=23897e17b0aae279a117757040a91a3fa46eaa2b;hb=6bbd32f7123ad8e964156bbb42909e47eeeef0c1;hpb=22c669bff35547784d89c2c5c87e4311be63500b diff --git a/bin/cbfwrd.php b/bin/cbfwrd.php index 23897e1..d2a0e83 100644 --- a/bin/cbfwrd.php +++ b/bin/cbfwrd.php @@ -1,7 +1,9 @@ bootHardware(); + exit(0); + } +} + +// now we got into daemon modes +$cont = true; + +// setup our sem/shm stuff + +// this stuff needs to go in comms +while($cont) { + $comms = new Comms; + + $config->loadConfig(); + $comms->putConfig($config->getConfig()); + + $msg = $comms->waitForMessage(); + + //echo "Got message: $msg\n"; + if($msg == "quit") $cont = false; + else cbfwd_commandProcessor($msg); +} + + +function cbfwd_commandProcessor($command) +{ + +} ?> \ No newline at end of file