[Feature] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, install, run server.
Change-Id: I8acbaff403d611df82bbebaef5d6281defb2acf8
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(sqlite3)
Requires(post): libcap-tools
-Requires: bridge-utils
+Requires: iproute2
Requires: libjson >= 0.10
%description
# prepare pre start hook
> ${path}/pre-start.sh
cat <<EOF >> ${path}/pre-start.sh
-if [ -z "\$(/usr/sbin/brctl show | /bin/grep -P "${br_name}\t")" ]
+if [ -z "\$(/usr/sbin/ip show | /bin/grep -P "${br_name}\t")" ]
then
- /usr/sbin/brctl addbr ${br_name}
- /usr/sbin/brctl setfd ${br_name} 0
+ /usr/sbin/ip link add name ${br_name} type bridge
/sbin/ifconfig ${br_name} ${ipv4_gateway} netmask 255.255.255.0 up
fi
if [ -z "\$(/usr/sbin/iptables -t nat -S | /bin/grep MASQUERADE)" ]
# Prepare zone hook files
cat <<EOF >>${path}/hooks/pre-start.sh
-if [ -z "\$(/usr/sbin/brctl show | /bin/grep -P "${br_name}\t")" ]
+if [ -z "\$(/usr/sbin/ip show | /bin/grep -P "${br_name}\t")" ]
then
- /usr/sbin/brctl addbr ${br_name}
- /usr/sbin/brctl setfd ${br_name} 0
+ /usr/sbin/ip link add name ${br_name} type bridge
/sbin/ifconfig ${br_name} ${ipv4_gateway} netmask 255.255.255.0 up
fi
if [ -z "\$(/usr/sbin/iptables -t nat -S | /bin/grep MASQUERADE)" ]