Revert "include/shell.sh: remove getvar()"
authorFelix Fietkau <nbd@openwrt.org>
Sun, 26 Oct 2014 16:18:24 +0000 (16:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 26 Oct 2014 16:18:24 +0000 (16:18 +0000)
It is more widely used than I thought.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43068

include/shell.sh

index a1e5cbe..634beed 100644 (file)
@@ -1,3 +1,7 @@
+getvar() {
+       eval "echo \"\${$1}\""
+}
+
 var2file() {
        local var
        eval "var=\"\${$1}\""