Based on a patch from Oliver Metz. Closes #10735. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35709