Commits

Anonymous committed 71a17c7

Better OSX compatibility: thanks Peter Zahradnik

  • Participants
  • Parent commits 15a85e8

Comments (0)

Files changed (1)

testing/installers/python/install.py

       print "Device doesn't exist"
       # and thus we are not 'verified'
       verified = "no"
+
+    # check if SD card is unlocked
+    try:
+      f=open(device,"w")
+      f.close()
+    except IOError:
+      print "Device is not writable ->", device
+      print "(Make sure the lock switch on the card is unlocked)"
+      verified = "no" 
   
   return device