X-Git-Url: http://git.onelab.eu/?p=iptables.git;a=blobdiff_plain;f=iptables.spec;fp=iptables.spec;h=d7c022b3db8c8441283a884ae0e70271653c283b;hp=dd141499db7fb3e6455a5acfaea8fb99f0121b20;hb=8db75c6086db1e90729b9bf096ee8ea2167794e2;hpb=45a3198dfe294394ccbb888da15d5bbfc0823ca7 diff --git a/iptables.spec b/iptables.spec index dd14149..d7c022b 100644 --- a/iptables.spec +++ b/iptables.spec @@ -117,6 +117,8 @@ rm -rf %{buildroot} %post /sbin/ldconfig /sbin/chkconfig --add iptables +DEFAULT_IFACE=$(ip route show default | awk '/default/ {print $5}' +sed -i -e "s;__eth;$DEFAULT_IFACE;g" /etc/sysconfig/iptables service iptables restart %postun -p /sbin/ldconfig