refactoring of the initscript

The initial version of the script provided by me seems to be a bit
broken, because the "setup" option creates a strange looking config. I
refactored the script now and i am willing to improve it in the next
weeks.