1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2007-02-09 09:45:29 +00:00
parent 88c0d9d80f
commit 46424301c3

View file

@ -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) {