I copied the code above and added one more section so it look slike this: and I get the following errors: :not found N900finder.sh:line 2: :not found N900finder.sh:line 3: :not found N900finder.sh:line 7: syntax error: "fi" unexpected (expecting "then") Please not this when I'm not expecting to find a device. perhaps thats why there is an error, could someone try my code please.