]> git.ozlabs.org Git - petitboot/blobdiff - discover/event.c
discover: Change parsers to explicitly request configuration files
[petitboot] / discover / event.c
index 0ccd3910e18396e989fe58ce8e8e423be6716373..d4bb2c5dbcaeb9de78ee5caf50b0bc61bd80a0e1 100644 (file)
@@ -50,6 +50,8 @@ static int event_parse_ad_header(char *buf, int len, enum event_action *action,
                *action = EVENT_ACTION_REMOVE;
        else if (streq(buf, "conf"))
                *action = EVENT_ACTION_CONF;
+       else if (streq(buf, "dhcp"))
+               *action = EVENT_ACTION_DHCP;
        else {
                pb_log("%s: unknown action: %s\n", __func__, buf);
                return -1;