void-packages/srcpkgs/openvswitch/files/ovsdb-server/run

8 lines
272 B
Bash
Executable File

#!/bin/sh
if [ ! -f /etc/openvswitch/conf.db ]; then
install -d /etc/openvswitch
ovsdb-tool create /etc/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema || exit 1
fi
install -d /run/openvswitch
exec ovsdb-server --remote=punix:/run/openvswitch/db.sock