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
This commit is contained in:
seife
2011-02-08 12:52:20 +00:00
parent 6877f01525
commit a55a7e6eb8
2 changed files with 5 additions and 1 deletions

View File

@@ -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
#

View File

@@ -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");