You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
868 B

  1. From 444991b95ed25d58c3cd1646fa823620380b6ce6 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] 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. --- a/utilities/ovs-lib.in
  11. +++ b/utilities/ovs-lib.in
  12. @@ -159,7 +159,10 @@ install_dir () {
  13. [ "${OVS_USER##*:}" != "" ] && INSTALL_GROUP="${OVS_USER##*:}"
  14. if test ! -d "$DIR"; then
  15. - install -d -m "$INSTALL_MODE" -o "$INSTALL_USER" -g "$INSTALL_GROUP" "$DIR"
  16. + mkdir -p "$DIR"
  17. + chmod "$INSTALL_MODE" "$DIR"
  18. + chown "$INSTALL_USER" "$DIR"
  19. + chgrp "$INSTALL_GROUP" "$DIR"
  20. restorecon "$DIR" >/dev/null 2>&1
  21. fi
  22. }