place script in own file

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>