/etc/config/easycwmp
config local
option interface wlan0
option port 7547
option ubus_socket /var/run/ubus.sock
option date_format %FT%T%z
option username bob
/etc/config/easycwmp
config local
option interface wlan0
option port 7547
option ubus_socket /var/run/ubus.sock
option date_format %FT%T%z
option username bob
| #!/bin/sh | |
| set -e | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
| echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
| sudo add-apt-repository -y ppa:chris-lea/redis-server | |
| sudo add-apt-repository -y ppa:chris-lea/node.js | |
| sudo apt-add-repository -y ppa:brightbox/ruby-ng | |
| sudo apt-get -qq update |
| VPNCMD="sudo /usr/local/vpnserver/vpncmd localhost:443 /SERVER /CMD" | |
| # Create virtual hub | |
| ${VPNCMD} HubCreate ${HubName} /PASSWD:admin | |
| # Create local bridge(connect to physical device) | |
| ${VPNCMD} BridgeCreate ${HubName} /DEVICE:${phy_dev_name:-eth0} | |
| # Create local bridge(create tap interface) |
| #!/bin/sh | |
| # | |
| # Traffic logging tool for OpenWRT-based routers | |
| # Original code at https://code.google.com/p/wrtbwmon/ | |
| # For usage with OpenWRT, take a look at http://heyeshuang.tk/?p=268 | |
| # Created by Emmanuel Brucy (e.brucy AT qut.edu.au) | |
| # Modified by HeYSH (yeshuanghe AT gmail.com) | |
| # | |
| # Based on work from Fredrik Erlandsson (erlis AT linux.nu) | |
| # Based on traff_graph script by twist - http://wiki.openwrt.org/RrdTrafficWatch |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| require 'formula' | |
| require 'hardware' | |
| class Qt5Base < Formula | |
| homepage 'http://qt.nokia.com/' | |
| head 'git://gitorious.org/qt/qtbase.git', :tag => 'e34ee3127043773a037bfd18a2d457d409032ee5' | |
| keg_only 'For development purposes only' | |
| def patches |
| -- Using LuaSQL for sqlite3 DB handling. | |
| require('luasql.sqlite3') | |
| local env = assert(luasql.sqlite3()) -- create the context | |
| local conn = assert(env:connect("test.sqlite")) -- connect to the DB | |
| -- Do some queries. | |
| assert(conn:execute("CREATE TABLE IF NOT EXISTS tbl1(one varchar(10), two smallint)")) | |
| assert(conn:execute("INSERT INTO tbl1 VALUES('hello!', 10)")) |