else if (streq(buf, "dhcp"))
*action = EVENT_ACTION_DHCP;
else if (streq(buf, "boot"))
*action = EVENT_ACTION_BOOT;
else if (streq(buf, "sync"))
*action = EVENT_ACTION_SYNC;
else if (streq(buf, "dhcp"))
*action = EVENT_ACTION_DHCP;
else if (streq(buf, "boot"))
*action = EVENT_ACTION_BOOT;
else if (streq(buf, "sync"))
*action = EVENT_ACTION_SYNC;