From d4754e1eb5ac024d7a8d649aa8b01c85a9e34649 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 26 Oct 2014 16:18:24 +0000 Subject: Revert "include/shell.sh: remove getvar()" It is more widely used than I thought. Signed-off-by: Felix Fietkau SVN-Revision: 43068 --- include/shell.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/shell.sh') diff --git a/include/shell.sh b/include/shell.sh index a1e5cbe66f..634beedcef 100644 --- a/include/shell.sh +++ b/include/shell.sh @@ -1,3 +1,7 @@ +getvar() { + eval "echo \"\${$1}\"" +} + var2file() { local var eval "var=\"\${$1}\"" -- cgit v1.2.3