From def3a1161bb08d6b2a252b8b34f4f40a99658abf Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 8 Feb 2011 12:52:20 +0000 Subject: [PATCH] hide mount hack behind a configure switch the mount hack has nothing to do with coolstream hardware, but with broken userspace, thus hide it behind a configure switch git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1123 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a55a7e6eb8402d7bee52756787c1937b34870058 Author: Stefan Seyfried Date: 2011-02-08 (Tue, 08 Feb 2011) ------------------ This commit was generated by Migit --- configure.ac | 4 ++++ src/neutrino.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ada2ce491..0caf54f86 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,10 @@ AC_ARG_ENABLE(restore-prev-mode, [ --enable-restore-prev-mode enable return from graphics mode], [AC_DEFINE(RETURN_FROM_GRAPHICS_MODE,1,[enable return from graphics mode])]) +AC_ARG_ENABLE(broken-neutrino-mount-hack, + [ --enable-broken-neutrino-mount-hack enable broken neutrino mount hack, don't use with mdev], + [AC_DEFINE(ASSUME_NO_MDEV,1,[enable broken neutrino mount hack, don't use with mdev])]) + # # Check for libtdservicedb - the new one - for testing only # diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 835f1dcac..1ac335484 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -2302,7 +2302,7 @@ int CNeutrinoApp::run(int argc, char **argv) saveSetup(NEUTRINO_SETTINGS_FILE); } -#ifdef HAVE_COOL_HARDWARE +#ifdef ASSUME_NO_MDEV system("mkdir /media/sda1 2> /dev/null"); system("mount /media/sda1 2> /dev/null"); system("mkdir /media/sdb1 2> /dev/null");