config stuff
[CBFWR.git] / libcbfwr / comms.php
index b0c4f04..7f89650 100644 (file)
@@ -37,6 +37,13 @@ class Comms {
                sem_release($this->semres);
        }
        
+       function deleteConfig($type)
+       {
+               global $MESSAGE_KEY, $LOCKING_KEY, $STORE_KEY, $CONF_STORE_SIZE;
+               $shm_space = shm_attach($STORE_KEY, $CONF_STORE_SIZE);
+               
+               shm_remove_var($shm_space, $type);
+       }
        
        // type = 0 for the fs config
        // type = 1 for the boot hardware config