aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2017-10-18 10:37:58 +0800
committerJohn Crispin <john@phrozen.org>2017-11-10 23:00:47 +0100
commit23c1504059e187a279296bc827878c8dc314cc05 (patch)
treef1c71d63bc0ee8802de9931d189c35148dbb6567 /package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch
parent1e0276a39af1094cff925148cc8340fc1893056d (diff)
downloadupstream-23c1504059e187a279296bc827878c8dc314cc05.tar.gz
upstream-23c1504059e187a279296bc827878c8dc314cc05.tar.bz2
upstream-23c1504059e187a279296bc827878c8dc314cc05.zip
layerscape: add restool package
restool is a user space application providing the ability to dynamically create and manage Layerscape DPAA2 containers and objects from Linux. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch')
-rw-r--r--package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch b/package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch
new file mode 100644
index 0000000000..c642afcafa
--- /dev/null
+++ b/package/network/utils/layerscape/restool/patches/0009-scripts-workaround-for-a-improper-sed-substitution-T.patch
@@ -0,0 +1,36 @@
+From ac387de9688099bca1fbdb587d078b369aaf2dab Mon Sep 17 00:00:00 2001
+From: Ioana Ciornei <ioana.ciornei@nxp.com>
+Date: Wed, 25 Oct 2017 11:23:42 +0000
+Subject: [PATCH 09/12] scripts: workaround for a improper sed substitution
+ (TODO)
+
+Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
+---
+ scripts/ls-main | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/scripts/ls-main b/scripts/ls-main
+index bd79295..7ce73f0 100755
+--- a/scripts/ls-main
++++ b/scripts/ls-main
+@@ -197,7 +197,7 @@ has_endpoint() {
+ ep=$($restool "$toe" info "$1" | grep "endpoint:" | sed "s/endpoint: \([^ ]*\)\,.*/\1/")
+ fi
+
+- if [[ "$ep" != *"No object associated"* && "$ep" != *"none"* ]]; then
++ if [[ "$ep" != "endpoint: No object associated" && "$ep" != *"none"* ]]; then
+ echo "$1 is already linked to $ep"
+ exit 1
+ fi
+@@ -230,7 +230,7 @@ get_endpoint() {
+ end_point=$($restool "$too" info "$1" | grep "endpoint:" | sed "s/endpoint: \([^ ]*\)\,.*/\1/")
+ fi
+
+- if [[ "$end_point" != *"No object associated"* && "$end_point" != *"none"* ]]; then
++ if [[ "$end_point" != "endpoint: No object associated" && "$end_point" != *"none"* ]]; then
+ echo "$end_point"
+ fi
+ }
+--
+2.14.1
+