openwrt: changed ntpclient interval to 600 and wifi LED blink behaviour

This commit is contained in:
Bart Van Der Meerssche 2009-06-22 12:54:51 +00:00
parent 714c91462b
commit 8dc6c8f910
13 changed files with 37 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
# Copyright (c) 2008 jokamajo.org
# $Id: Makefile 3 2008-08-07 16:00:00Z icarus75 $
# $Id$
include $(TOPDIR)/rules.mk

View File

@ -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'

View File

@ -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 =

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -18,5 +18,5 @@ config ntpdrift
option freq '0'
config ntpclient
option interval 60
option interval 600
#option count 10

View File

@ -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

View File

@ -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 <string.h>
#include <stdlib.h>

View File

@ -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"