mirror of https://github.com/hak5/openwrt-owl.git
16 lines
196 B
Bash
16 lines
196 B
Bash
|
getvar() {
|
||
|
eval "echo \"\${$1}\""
|
||
|
}
|
||
|
|
||
|
var2file() {
|
||
|
local var
|
||
|
eval "var=\"\${$1}\""
|
||
|
if [ -n "$var" ]; then echo "$var" > "$2"; fi
|
||
|
}
|
||
|
|
||
|
isset() {
|
||
|
local var
|
||
|
eval "var=\"\${$1}\""
|
||
|
[ -n "$var" ]
|
||
|
}
|