When you run the script, are you sure location.txt has anything in it?
I'm not familiar with buildroot, but maybe your script is running before location.txt is generated or populated.
Also, there could be a path or shell problem. Try replacing cat with /bin/cat.
|