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
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
getvar() {
|
||||||
|
eval "echo \"\${$1}\""
|
||||||
|
}
|
||||||
|
|
||||||
var2file() {
|
var2file() {
|
||||||
local var
|
local var
|
||||||
eval "var=\"\${$1}\""
|
eval "var=\"\${$1}\""
|
||||||
|
|||||||
Reference in New Issue
Block a user