factored out common code
Merge branch 'master' of github.com:veltzer/linuxapi