Signed-off-by: Jan Willeke <willeke@smartmote.de>
Based on a patch submitted by Peter Bägel <peter@baegel.de>.