site.sh 325 B

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