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