Based on patches by Marco Porsch from: https://forum.openwrt.org/viewtopic.php?id=22311 SVN-Revision: 18411