[feature] add hook with file in gen_ip_ru and gen_ip_ro