summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/main.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-08-03 02:12:32 +0000
committerDave Chapman <dave@dchapman.com>2007-08-03 02:12:32 +0000
commit564d249e66f56e962903659e71d4b5be17112388 (patch)
tree2ee8aa0ffcd4ce5fca9b4e67c27ea8fcc57c01d8 /rbutil/ipodpatcher/main.c
parente4d0f0e6383bdf8f654177fd0036537de88cd021 (diff)
downloadrockbox-564d249e66f56e962903659e71d4b5be17112388.tar.gz
rockbox-564d249e66f56e962903659e71d4b5be17112388.tar.bz2
rockbox-564d249e66f56e962903659e71d4b5be17112388.zip
Detect and reject 2nd Gen Nanos when scanning for ipods, instead of failing quietly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14152 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/main.c')
-rw-r--r--rbutil/ipodpatcher/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/main.c b/rbutil/ipodpatcher/main.c
index 24938931d6..c47063cba8 100644
--- a/rbutil/ipodpatcher/main.c
+++ b/rbutil/ipodpatcher/main.c
@@ -348,6 +348,15 @@ int main(int argc, char* argv[])
printf("[INFO] Ipod model: %s (\"%s\")\n",ipod.modelstr,
ipod.macpod ? "macpod" : "winpod");
+ if (ipod.ipod_directory[0].vers == 0x10000) {
+ fprintf(stderr,"[ERR] *** ipodpatcher does not support the 2nd Generation Nano! ***\n");
+#ifdef WITH_BOOTOBJS
+ printf("Press ENTER to exit ipodpatcher :");
+ fgets(yesno,4,stdin);
+#endif
+ return 0;
+ }
+
if (ipod.macpod) {
print_macpod_warning();
}