- Use /bin/sh
- remove useless 'function' keyword
- turn the source is an absolute path if it isn't
- remove a few unneeded commands such as 'ls' and 'grep'
make link_ports.sh executable
remove duplicate path
remove more superfluous references to $SOURCE in for loop
Add more documentation