/etc/ovs-vswitchd.conf should always be there. Nevertheless, it is not
nice to entirely break vswitch if it is accidentally deleted. This commit
makes /etc/init.d/vswitch create an empty configuration file if it is
missing.
Bug #1821.
# ovs-vswitchd needs a few per bridge
ulimit -n 4096
+ if [ ! -e "$VSWITCHD_CONF" ]; then
+ warning "$VSWITCHD_CONF does not exist"
+ action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF"
+ fi
+
start_vswitchd
start_brcompatd
reload_vswitchd # ensures ovs-vswitchd has fully read config file.