]> git.ozlabs.org Git - petitboot/blobdiff - discover/event.c
discover: Add configuration events & DHCP handler
[petitboot] / discover / event.c
index 1314561c9eda23e19cfc016604ae71d207d9ae09..a05ce2752f42325fb9efd7c52bfeb44c092e9bae 100644 (file)
@@ -42,6 +42,8 @@ static int event_parse_ad_header(char *buf, int len, enum event_action *action,
                *action = EVENT_ACTION_ADD;
        else if (streq(buf, "remove"))
                *action = EVENT_ACTION_REMOVE;
+       else if (streq(buf, "conf"))
+               *action = EVENT_ACTION_CONF;
        else {
                pb_log("%s: unknown action: %s\n", __func__, buf);
                return -1;