2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 01:51:26 +00:00

ovs-kmod-ctl: source ovs-lib dynamically

Determine installation location of ovs-lib using runtime location
of script, rather than build-time parameters.

Signed-off-by: James Page <james.page@ubuntu.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
James Page 2018-09-19 09:13:48 +02:00 committed by Ben Pfaff
parent 348f1f6732
commit 333ea340a0

View File

@ -14,7 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
. "@pkgdatadir@/scripts/ovs-lib" || exit 1
case $0 in
*/*) dir0=`echo "$0" | sed 's,/[^/]*$,,'` ;;
*) dir0=./ ;;
esac
. "$dir0/ovs-lib" || exit 1
for dir in "$sbindir" "$bindir" /sbin /bin /usr/sbin /usr/bin; do
case :$PATH: in