summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-02-09 09:45:29 +0000
committerDave Chapman <dave@dchapman.com>2007-02-09 09:45:29 +0000
commit46424301c3c3974c9e1e682886f51a4828e4534a (patch)
tree8ca2a274d93e3f1d4ba42d6c55cc8bf9557b97bb
parent88c0d9d80fdaeb0bd4844989efbadaafde2a611a (diff)
downloadrockbox-46424301c3c3974c9e1e682886f51a4828e4534a.tar.gz
rockbox-46424301c3c3974c9e1e682886f51a4828e4534a.zip
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
-rw-r--r--tools/ipodpatcher/main.c10
1 files changed, 9 insertions, 1 deletions
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) {