// network layer is left in a state that will require a reboot to unjam it (AFAIK).
//
// So, check that loopback is correctly bound ...
Device loopback = (InitialNaming.lookup(DeviceManager.NAME)).getDevice("loopback");
NetDeviceAPI api = loopback.getAPI(NetDeviceAPI.class);
ProtocolAddressInfo info = api.getProtocolAddressInfo(EthernetConstants.ETH_P_IP);
if (info == null || !info.contains(InetAddress.getByAddress(new byte[]{127, 0, 0, 1}))) {
PrintWriter err = getError().getPrintWriter();
err.format(err_loopback);
exit(1);
}