pb-event: Add 'boot' user event
[petitboot] / discover / event.c
index 79323788368d8c20b5f4f67702bd68337a9fe371..8b3a1ab8b344ca2662a97649b5113c71d173047c 100644 (file)
@@ -53,6 +53,8 @@ static int event_parse_ad_header(char *buf, int len, enum event_action *action,
                *action = EVENT_ACTION_CONF;
        else if (streq(buf, "dhcp"))
                *action = EVENT_ACTION_DHCP;
+       else if (streq(buf, "boot"))
+               *action = EVENT_ACTION_BOOT;
        else {
                pb_log("%s: unknown action: %s\n", __func__, buf);
                return -1;