cfg_get_task
t = cfg_get_task(*chpid);
if (t == cfg_get_task(chpid))
if (cfg_get_task(chpid) == cfg_deconfigure)