improved installation scripts; added more error checks

Improved the installation scripts. Added wait loop to Ethernet IP
address detection since the eth0 interface seems to take a while to
come up after boot. Added early check to detect problems with bus
transactions.