summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-04-02 16:36:25 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-04-03 14:16:03 +1000
commit2ee42ce22b643f865e52088b0f0451ec1f3a8f09 (patch)
tree159b324a834514b20afa43a59250c07a146343d6
parentcabba48dcb96452352d0e6506384c4b2843bdac2 (diff)
downloadtalos-petitboot-2ee42ce22b643f865e52088b0f0451ec1f3a8f09.tar.gz
talos-petitboot-2ee42ce22b643f865e52088b0f0451ec1f3a8f09.zip
Add USE_FAKE_SOCKET compile option
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--devices/udev-helper.c10
1 files changed, 7 insertions, 3 deletions
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 <sys/ioctl.h>
#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;
OpenPOWER on IntegriCloud