diff options
author | egon_ffj <egon@freifunk-jena.de> | 2011-06-21 22:41:06 (GMT) |
---|---|---|
committer | egon_ffj <egon@freifunk-jena.de> | 2011-06-21 22:41:06 (GMT) |
commit | 6dd756b2460773989b384cfa1a5131cc784d6ff1 (patch) | |
tree | 468b9e31e81e1a34c254e0df733ccc3194ae225a /files | |
parent | e52b7d398bc98d77848e134b03047734630099be (diff) |
* do not write splashed users permanently to nand-flash
Diffstat (limited to 'files')
-rwxr-xr-x | files/sbin/splash_sync | 2 | ||||
-rwxr-xr-x | files/www/cgi-bin/splash_click | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/files/sbin/splash_sync b/files/sbin/splash_sync index 3285f97..f54fbb4 100755 --- a/files/sbin/splash_sync +++ b/files/sbin/splash_sync @@ -21,7 +21,7 @@ splash_check() { uci delete splash_users.@user[$x].ip uci delete splash_users.@user[$x].time uci delete splash_users.@user[$x] - uci commit + fi let x=$x+1 } diff --git a/files/www/cgi-bin/splash_click b/files/www/cgi-bin/splash_click index b54b15a..92e898a 100755 --- a/files/www/cgi-bin/splash_click +++ b/files/www/cgi-bin/splash_click @@ -28,7 +28,7 @@ iptables -t nat -I ffj_splash 1 -s $REMOTE_HOST -j ACCEPT uci add splash_users user uci set splash_users.@user[-1].ip=$REMOTE_HOST uci set splash_users.@user[-1].time=`date +%s` -uci -q commit > /dev/null + exit 0 |