<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 444991b95ed25d58c3cd1646fa823620380b6ce6 Mon Sep 17 00:00:00 2001
From: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
Date: Wed, 14 Mar 2018 16:44:13 +0800
Subject: [PATCH] ovs-lib: fix install_dir()

The command "install" is not available in OpenWrt by default

Signed-off-by: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
---
 utilities/ovs-lib.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/utilities/ovs-lib.in
+++ b/utilities/ovs-lib.in
@@ -159,7 +159,10 @@ install_dir () {
     [ "${OVS_USER##*:}" != "" ] &amp;&amp; INSTALL_GROUP="${OVS_USER##*:}"
 
     if test ! -d "$DIR"; then
-        install -d -m "$INSTALL_MODE" -o "$INSTALL_USER" -g "$INSTALL_GROUP" "$DIR"
+        mkdir -p "$DIR"
+        chmod "$INSTALL_MODE" "$DIR"
+        chown "$INSTALL_USER" "$DIR"
+        chgrp "$INSTALL_GROUP" "$DIR"
         restorecon "$DIR" &gt;/dev/null 2&gt;&amp;1
     fi
 }
</pre></body></html>