Rewrite for openwrt 14.07.