(mostly) finished the script
todo: the update files & testing ;)

Signed-off-by: Sweil <mail@sweil.de>