aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-26 16:18:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-26 16:18:24 +0000
commitd4754e1eb5ac024d7a8d649aa8b01c85a9e34649 (patch)
treef6421aba8afa66797dc93f7478c51a83d41ff744 /include
parent4aa8c512b06e000dfea796af10ffa1684316c0d5 (diff)
downloadupstream-d4754e1eb5ac024d7a8d649aa8b01c85a9e34649.tar.gz
upstream-d4754e1eb5ac024d7a8d649aa8b01c85a9e34649.tar.bz2
upstream-d4754e1eb5ac024d7a8d649aa8b01c85a9e34649.zip
Revert "include/shell.sh: remove getvar()"
It is more widely used than I thought. Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43068
Diffstat (limited to 'include')
-rw-r--r--include/shell.sh4
1 files changed, 4 insertions, 0 deletions
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}\""