iOS Version Detection Script

Use these bits of code to run different commands depending on a users iOS firmware version.