Based on a patch from НКВД. Closes #12962. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35610