#!/bin/sh
exec >&2
printf "[rg-firewall-config] Checking for existing firewall config: "
if [ ${IPKG_INSTROOT}/etc/config/firewall ]; then
  printf "exist, moving away..."
  mv ${IPKG_INSTROOT}/etc/config/firewall ${IPKG_INSTROOT}/etc/config/firewall.replaced-by-rg
else
  printf "doest not exist, giving up..."
fi
echo "done"
exit 0
