From 8dc6c8f910c06fb6fe45b56b6f5afbbe2ad7f4d7 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Mon, 22 Jun 2009 12:54:51 +0000 Subject: [PATCH] openwrt: changed ntpclient interval to 600 and wifi LED blink behaviour --- openwrt/config | 6 ++++-- openwrt/files/etc/sysctl.conf | 17 +++++++++++++++++ openwrt/packages/flukso/Makefile | 2 +- openwrt/packages/flukso/src/auth.lua | 4 ++-- openwrt/packages/flukso/src/data.lua | 4 ++-- openwrt/packages/flukso/src/dbg.lua | 2 +- openwrt/packages/flukso/src/flukso.init | 2 +- openwrt/packages/flukso/src/flukso.lua | 8 ++++---- openwrt/packages/flukso/src/heartbeat.lua | 2 +- .../packages/ntpclient/files/ntpclient.config | 2 +- uc/calibration.c | 2 +- uc/main.c | 2 +- uc/main.h | 2 +- 13 files changed, 37 insertions(+), 18 deletions(-) create mode 100644 openwrt/files/etc/sysctl.conf diff --git a/openwrt/config b/openwrt/config index 664914c..f98c6d5 100644 --- a/openwrt/config +++ b/openwrt/config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # OpenWrt version: Kamikaze (r16491) -# Thu Jun 18 23:48:14 2009 +# Sun Jun 21 11:25:33 2009 # CONFIG_HAVE_DOT_CONFIG=y # CONFIG_TARGET_ppc40x is not set @@ -729,8 +729,10 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y # CONFIG_BUSYBOX_CONFIG_IP is not set # CONFIG_BUSYBOX_CONFIG_IPCALC is not set # CONFIG_BUSYBOX_CONFIG_NAMEIF is not set -# CONFIG_BUSYBOX_CONFIG_NC is not set +CONFIG_BUSYBOX_CONFIG_NC=y CONFIG_BUSYBOX_CONFIG_NETMSG=y +# CONFIG_BUSYBOX_CONFIG_NC_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_NC_EXTRA is not set CONFIG_BUSYBOX_CONFIG_NETSTAT=y CONFIG_BUSYBOX_CONFIG_FEATURE_NETSTAT_WIDE=y CONFIG_BUSYBOX_CONFIG_NSLOOKUP=y diff --git a/openwrt/files/etc/sysctl.conf b/openwrt/files/etc/sysctl.conf new file mode 100644 index 0000000..555c2fa --- /dev/null +++ b/openwrt/files/etc/sysctl.conf @@ -0,0 +1,17 @@ +kernel.panic=3 +net.ipv4.conf.default.arp_ignore=1 +net.ipv4.conf.all.arp_ignore=1 +net.ipv4.ip_forward=1 +net.ipv4.icmp_echo_ignore_broadcasts=1 +net.ipv4.icmp_ignore_bogus_error_responses=1 +net.ipv4.tcp_ecn=1 +net.ipv4.tcp_fin_timeout=30 +net.ipv4.tcp_keepalive_time=120 +net.ipv4.tcp_syncookies=1 +net.ipv4.tcp_timestamps=0 +net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=3600 +net.ipv4.netfilter.ip_conntrack_udp_timeout=60 +net.ipv4.netfilter.ip_conntrack_udp_timeout_stream=180 +# net.ipv6.conf.all.forwarding=1 +dev.wifi0.ledpin=4 +dev.wifi0.softled=1 diff --git a/openwrt/packages/flukso/Makefile b/openwrt/packages/flukso/Makefile index b31c84e..2e36296 100644 --- a/openwrt/packages/flukso/Makefile +++ b/openwrt/packages/flukso/Makefile @@ -1,5 +1,5 @@ # Copyright (c) 2008 jokamajo.org -# $Id: Makefile 3 2008-08-07 16:00:00Z icarus75 $ +# $Id$ include $(TOPDIR)/rules.mk diff --git a/openwrt/packages/flukso/src/auth.lua b/openwrt/packages/flukso/src/auth.lua index e2fcf5f..850b928 100644 --- a/openwrt/packages/flukso/src/auth.lua +++ b/openwrt/packages/flukso/src/auth.lua @@ -16,7 +16,7 @@ -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -- --- $Id: auth.lua 1 2009-03-13 13:40:00Z icarus75 $ +-- $Id$ -- require 'luci.model.uci' @@ -70,4 +70,4 @@ function hmac(T, M, timestamp) T.signature = lxyssl.hash('hmac-sha1', T.key):digest(T.message):hex() T.message, T.key, T.version = nil, nil, nil -end \ No newline at end of file +end diff --git a/openwrt/packages/flukso/src/data.lua b/openwrt/packages/flukso/src/data.lua index a709ea1..ba8bdb8 100644 --- a/openwrt/packages/flukso/src/data.lua +++ b/openwrt/packages/flukso/src/data.lua @@ -16,7 +16,7 @@ -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -- --- $Id: data.lua 1 2009-01-31 22:30:00Z icarus75 $ +-- $Id$ -- local os, math, table = @@ -59,4 +59,4 @@ function filter(M, span, offset) end end end -end \ No newline at end of file +end diff --git a/openwrt/packages/flukso/src/dbg.lua b/openwrt/packages/flukso/src/dbg.lua index 7891365..2627718 100644 --- a/openwrt/packages/flukso/src/dbg.lua +++ b/openwrt/packages/flukso/src/dbg.lua @@ -4,7 +4,7 @@ -- Vardump: The Power of Seeing What's Behind -- Copyright 2008 by Tobias Sülzenbrück and Christoph Beckmann -- --- $Id: dbg.lua 1 2009-01-31 22:30:00Z icarus75 $ +-- $Id$ -- local getfenv, getmetatable, print, pairs, type, tostring = getfenv, getmetatable, print, pairs, type, tostring diff --git a/openwrt/packages/flukso/src/flukso.init b/openwrt/packages/flukso/src/flukso.init index 298550c..3885786 100755 --- a/openwrt/packages/flukso/src/flukso.init +++ b/openwrt/packages/flukso/src/flukso.init @@ -1,6 +1,6 @@ #!/bin/sh /etc/rc.common # Copyroght (c) 2008 jokamajo.org -# $Id: flukso.init 7 2009-02-16 23:13:00Z icarus75 $ +# $Id$ START=98 diff --git a/openwrt/packages/flukso/src/flukso.lua b/openwrt/packages/flukso/src/flukso.lua index 552a939..c278050 100755 --- a/openwrt/packages/flukso/src/flukso.lua +++ b/openwrt/packages/flukso/src/flukso.lua @@ -18,7 +18,7 @@ -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -- --- $Id: deamon.lua 12 2009-03-04 22:30:00Z icarus75 $ +-- $Id$ -- require 'posix' @@ -46,9 +46,9 @@ function receive(device) posix.syslog(30, 'received pulse from '..device..': '..line:sub(5)) -- flash the power led for 50ms - os.execute('gpioctl set 7') + os.execute('gpioctl clear 4') socket.select(nil, nil, 0.05) - os.execute('gpioctl clear 7') + os.execute('gpioctl set 4') local meter, value = line:sub(5, 36), tonumber(line:sub(38)) coroutine.yield(meter, os.time(), value) @@ -151,4 +151,4 @@ local aggregator = gc( while true do dbg.vardump(aggregator()) -end \ No newline at end of file +end diff --git a/openwrt/packages/flukso/src/heartbeat.lua b/openwrt/packages/flukso/src/heartbeat.lua index 4ad5e7d..f77d651 100755 --- a/openwrt/packages/flukso/src/heartbeat.lua +++ b/openwrt/packages/flukso/src/heartbeat.lua @@ -18,7 +18,7 @@ -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -- --- $Id: heartbeat.lua 6 2008-03-17 21:17:00Z icarus75 $ +-- $Id$ -- if not arg[1] then diff --git a/openwrt/packages/ntpclient/files/ntpclient.config b/openwrt/packages/ntpclient/files/ntpclient.config index 1b56f1b..c140257 100644 --- a/openwrt/packages/ntpclient/files/ntpclient.config +++ b/openwrt/packages/ntpclient/files/ntpclient.config @@ -18,5 +18,5 @@ config ntpdrift option freq '0' config ntpclient - option interval 60 + option interval 600 #option count 10 diff --git a/uc/calibration.c b/uc/calibration.c index b356e68..47f504d 100644 --- a/uc/calibration.c +++ b/uc/calibration.c @@ -1,5 +1,5 @@ // Copyright (c) 2008 jokamajo.org -// $Id: main.pde 1 2008-08-19 00:40:00Z icarus75 $ +// $Id$ // define section, move to main.h later on diff --git a/uc/main.c b/uc/main.c index f6198c5..08bc08d 100644 --- a/uc/main.c +++ b/uc/main.c @@ -16,7 +16,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // -// $Id: main.1mhz.c 3 2009-05-26 20:27:00Z icarus75 $ +// $Id$ #include #include diff --git a/uc/main.h b/uc/main.h index e3e0876..7babde0 100644 --- a/uc/main.h +++ b/uc/main.h @@ -16,7 +16,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // -// $Id: main.1mhz.h 1 2009-05-27 20:27:00Z icarus75 $ +// $Id$ // #define SENSOR0 "197676b88851e28c489524b4526a3745"