From 229a28cbf95e7c7003e64255b1e3cd07f3c416cb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 21 Jun 2013 13:43:04 -0400 Subject: check in configure if ionice -c3 works On old systems, it may need to be run as root. --- Command/Assistant.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Command/Assistant.hs') diff --git a/Command/Assistant.hs b/Command/Assistant.hs index a8928bcf4..f65bed736 100644 --- a/Command/Assistant.hs +++ b/Command/Assistant.hs @@ -13,6 +13,7 @@ import qualified Option import qualified Command.Watch import Init import Config.Files +import qualified Build.SysConfig import System.Environment @@ -55,7 +56,7 @@ autoStart = do f <- autoStartFile error $ "Nothing listed in " ++ f program <- readProgramFile - haveionice <- inPath "ionice" + haveionice <- pure Build.SysConfig.ionice <&&> inPath "ionice" forM_ dirs $ \d -> do putStrLn $ "git-annex autostart in " ++ d ifM (catchBoolIO $ go haveionice program d) -- cgit v1.2.3