1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-12 16:11:35 +02:00
openwrt-xburst/include/shell.sh

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" ]
}