#!/bin/sh db="/etc/openvswitch/conf.db" if [ -e "$db" ]; then echo "Trying schema migration for $db..." ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema" else echo "Creating new Open vSwitch database $db..." ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema" fi