From 46424301c3c3974c9e1e682886f51a4828e4534a Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 9 Feb 2007 09:45:29 +0000 Subject: [PATCH] Display some advice when no ipods are found in interactive mode git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12240 a1c6a512-1295-4272-9138-f99709370657 --- tools/ipodpatcher/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/ipodpatcher/main.c b/tools/ipodpatcher/main.c index 3c3c0c860a..49c79e2454 100644 --- a/tools/ipodpatcher/main.c +++ b/tools/ipodpatcher/main.c @@ -150,9 +150,17 @@ int main(int argc, char* argv[]) if (n==0) { fprintf(stderr,"[ERR] No ipods found, aborting\n"); fprintf(stderr,"[ERR] Please connect your ipod and ensure it is in disk mode\n"); +#if defined(__APPLE__) && defined(__MACH__) + fprintf(stderr,"[ERR] Also ensure that itunes is closed, and that your ipod is not mounted.\n"); +#elif !defined(__WIN32__) + if (geteuid()!=0) { + fprintf(stderr,"[ERR] You may also need to run ipodpatcher as root.\n"); + } +#endif + fprintf(stderr,"[ERR] Please refer to the Rockbox manual if you continue to have problems.\n"); } else if (n > 1) { fprintf(stderr,"[ERR] %d ipods found, aborting\n",n); - fprintf(stderr,"[ERR] Please connect only one ipod.\n"); + fprintf(stderr,"[ERR] Please connect only one ipod and re-run ipodpatcher.\n"); } if (n != 1) {