This commit starts to remove some code redundancy from the startup scripts for easier maintenance.
Fixes #192 Signed-off-by: Jeroen Simonetti <[email protected]>