|Ask yourself this question: Do you really need to export the entire / filesystem or is a specific directory enough?
I would forget about that script you're trying to run and just get nfs working first then you can tinker with customizations and such.
Some nfs basics:
You can find out what is being exported like so:
# showmount -e
Are all services running as required?
# rpcinfo -p
Can you actually mount those shares on the nfs server itself?
# mkdir test
# mount 192.168.1.2:/ test
An example from my own nfs server:
root@slave:/home/glenn# showmount -e
Export list for slave:
So we see that there are 3 directories exported.
Let's try to mount one of them.
root@slave:/home/glenn# mount 192.168.11.107:/home test
root@slave:/home/glenn# ls test
Voila! So now we can manually try and mount that share on another machine. Once you get past all of this then try setting it up so that everything is automounted for you. If you have further problems please post your complete /etc/exports and the output of showmount -e.