[packages/iptables] - added ebtables init scripts

Jacek Konieczny jajcus at jajcus.net
Mon Jul 3 13:26:41 CEST 2017


On 2016-04-09 15:45, baggins wrote:
> commit 9ec3dc4d5d00befe1b59d557cc4d4e34635816c5
> Author: Jan Rękorajski <baggins at pld-linux.org>
> Date:   Sat Apr 9 21:57:09 2016 +0900
>
>     - added ebtables init scripts

Have you actually tested this?


> +		if is_yes "$EBTABLES_BINARY_FORMAT"; then
> +			for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
> +				/usr/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
> +			done

--atomic-file, --atomic-commit do not seem to work at all in the 
iptables-provided 'ebtables'

[root at jajo ~]# ebtables-compat -t filter  --atomic-file /tmp/x 
--atomic-commit
Extensions only for -A, -I, -D and -C.
[root at jajo ~]# ebtables-compat -t filter  --atomic-file /tmp/x --atomic-save
Extensions only for -A, -I, -D and -C.


> +		else
> +			/usr/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
> +		fi

And there is no such thing as ebtables-restore or ebtables-save here,

Jacek


More information about the pld-devel-en mailing list