Offer USB network setup after connecting OpenMoko device via USB
Offer USB network setup after connecting OpenMoko device via USB. Only when a fully booted OpenMoko device is connected via USB to a desktop of laptop, Ubuntu on that desktop or laptop will offer to setup USB networking with that device as is described here:
A dialogue should popup and ask the user if he or she would like to setup up USB networking with this device. All relevant input values would have to have sane values and can be overriden directly by the user. Latest values should be used as default for the next networking setup and should be stored in /etc since this is a sudo/root operation anyway.
Also commands that have to be executed on the device should be shown in order to easily set up this networking. On removing of the device, all networking should be removed (after user confirmation?). Also commands that have to be executed on the device to undo the netwerk settings should be displayed.
Additional checks can be made, wheter the device's USB is in host mode or not, or if this doesn't matter.
Also mounting of all the device's partitions should be offered. Mounting of the microSD should be offeded as read write, all others as read only. The settings, none/read/
On disconnection, the mounted partitions should be unmounted. For this an eject of any of the partitions should trigger and eject, unmount and disconnect USB network for the entire device.