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

9 lines
325 B
Bash
Executable File

#!/bin/sh
export GLUONDIR="$(dirname "$0")/.."
export GLUON_SITE_CONFIG="$GLUONDIR/site/site.conf"
SITE_CONFIG_LUA=packages/gluon/gluon/gluon-core/files/usr/lib/lua/gluon/site_config.lua
"$GLUONDIR"/openwrt/staging_dir/host/bin/lua -e "print(assert(dofile(os.getenv('GLUONDIR') .. '/${SITE_CONFIG_LUA}').$1))" 2>/dev/null