X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=devices%2Fudev-helper.c;h=c113e55432177217c7fc144ded1b9e4ddc11ce69;hp=f54ca238fd03178d165a169c520c36efa2f6b5e0;hb=f2c8c4c7197ef61c0378ffbeb4649d28bfcbba06;hpb=cabba48dcb96452352d0e6506384c4b2843bdac2 diff --git a/devices/udev-helper.c b/devices/udev-helper.c index f54ca23..c113e55 100644 --- a/devices/udev-helper.c +++ b/devices/udev-helper.c @@ -16,10 +16,14 @@ #include #include "udev-helper.h" -#define REMOVABLE_SLEEP_DELAY 2 - #include "petitboot-paths.h" +/* Define below to operate without the frontend */ +#undef USE_FAKE_SOCKET + +/* Delay in seconds between polling of removable devices */ +#define REMOVABLE_SLEEP_DELAY 2 + extern struct parser native_parser; extern struct parser yaboot_parser; static FILE *logf; @@ -195,7 +199,7 @@ int remove_device(const char *dev_path) int connect_to_socket() { -#if 1 +#ifndef USE_FAKE_SOCKET int fd; struct sockaddr_un addr;