Improve code.

git-svn-id: svn://svn.code.sf.net/p/openmediavault/code@1418 3c3d7b80-5828-415e-9f61-280b98178fff
Mantis 0001096: Reconnecting external drives.

git-svn-id: svn://svn.code.sf.net/p/openmediavault/code@1419 3c3d7b80-5828-415e-9f61-280b98178fff