0104-ovs-lib-fix-install_dir.patch 972 B

12345678910111213141516171819202122232425262728293031
  1. From d8dd661e1c100a2d2ba0361cf6c91dcdedfeeb70 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Wed, 14 Mar 2018 16:44:13 +0800
  4. Subject: [PATCH 104/104] ovs-lib: fix install_dir()
  5. The command "install" is not available in OpenWrt by default
  6. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  7. ---
  8. utilities/ovs-lib.in | 5 ++++-
  9. 1 file changed, 4 insertions(+), 1 deletion(-)
  10. diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
  11. index 1bccea0c5..457297f3f 100644
  12. --- a/utilities/ovs-lib.in
  13. +++ b/utilities/ovs-lib.in
  14. @@ -157,7 +157,10 @@ install_dir () {
  15. [ "${OVS_USER##*:}" != "" ] && INSTALL_GROUP="${OVS_USER##*:}"
  16. if test ! -d "$DIR"; then
  17. - install -d -m "$INSTALL_MODE" -o "$INSTALL_USER" -g "$INSTALL_GROUP" "$DIR"
  18. + mkdir -p "$DIR"
  19. + chmod "$INSTALL_MODE"
  20. + chown "$INSTALL_USER" "$DIR"
  21. + chgrp "$INSTALL_GROUP" "$DIR"
  22. restorecon "$DIR" >/dev/null 2>&1
  23. fi
  24. }
  25. --
  26. 2.16.2