# If the kernel module is already loaded, we have nothing to do here.
# A force-reload-kmod should be run manually to use the new kernel module.
-if [ -e /sys/module/openvswitch ] || [ -e /sys/module/openvswitch_mod ]; then
+if [ -e /sys/module/openvswitch ]; then
exit 0
fi
#! /bin/sh
#
-# Copyright (C) 2011, 2012 Nicira, Inc.
+# Copyright (C) 2011, 2012, 2016 Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
2>/dev/null`
LOADED_VERSION=`cat /sys/module/openvswitch/version \
2>/dev/null`
- elif [ -e /sys/module/openvswitch_mod ]; then
- LOADED_SRCVERSION=`cat /sys/module/openvswitch_mod/srcversion \
- 2>/dev/null`
- LOADED_VERSION=`cat /sys/module/openvswitch_mod/version \
- 2>/dev/null`
fi
SRCVERSION=`modinfo -F srcversion openvswitch 2>/dev/null`
VERSION=`modinfo -F version openvswitch 2>/dev/null`
fi
# If openvswitch is already loaded then we're done.
- test -e /sys/module/openvswitch -o -e /sys/module/openvswitch_mod && \
- return 0
+ test -e /sys/module/openvswitch && return 0
# Load openvswitch. If that's successful then we're done.
insert_mods && return 0
fi
done
- # try both old and new names in case this is post upgrade
- if test -e /sys/module/openvswitch_mod; then
- action "Removing openvswitch module" rmmod openvswitch_mod
- elif test -e /sys/module/openvswitch; then
+ if test -e /sys/module/openvswitch; then
action "Removing openvswitch module" rmmod openvswitch
fi