gluon/scripts/site.sh
2014-05-15 22:59:12 +02:00

6 lines
194 B
Bash
Executable File

#!/bin/sh
export GLUONDIR="$(dirname "$0")/.."
"$GLUONDIR"/openwrt/staging_dir/host/bin/lua -e "dofile(os.getenv('GLUONDIR') .. '/scripts/load_site.lua') print(assert(config.$1))" 2>/dev/null