X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fshell.sh;h=634beedcef3e17d351f440a765c251ae16f50737;hb=e90642f826f878a1e33084db89c009a9c2d73092;hp=a1e5cbe66f915a0aeb7e240da20f706cdf568e13;hpb=bfb131c6d559f2a5246b63405a029088dcc370f7;p=openwrt.git 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}\""