#!/bin/sh
[ -z "${IPKG_INSTROOT}" ] || exit 0

# 删除 lan -> UU 的 forwarding
uci delete firewall.uu_forwarding 2>/dev/null

# 删除 UU -> lan 的 forwarding
uci delete firewall.uu_reverse_forwarding 2>/dev/null

# 删除 uu 的 zone
uci delete firewall.uu_zone 2>/dev/null

# 应用配置
uci commit firewall
/etc/init.d/firewall reload >/dev/null 2>&1
exit 0
