Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007
This is based on the patch by Peter Wagner. SVN-Revision: 34252