diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-01 10:52:35 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-07-01 10:52:35 +0000 |
commit | c94a903468b6d59113798a0b724dd3feff128949 (patch) | |
tree | 018ea838513e48373940daa0ec9ebc4c13a10f7e /package/network/services/hostapd | |
parent | de827f645e687f73d56927012b99c63d762bb4a5 (diff) |
hostapd: truncate default mac file before adding entries to it (#13797)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37114 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r-- | package/network/services/hostapd/Makefile | 2 | ||||
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index d3447dfca0..e7150396e8 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=hostapd PKG_VERSION:=20130630 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_REV:=9e6a321815f924e1e42896538d639e62d7786f6a PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index 8d6f30538d..94f75c1c95 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -220,7 +220,9 @@ hostapd_set_bss_options() { if [ -z "$macfile" ] then # if no macfile has been specified, fallback to the default name + # and truncate file to avoid aggregating entries over time macfile="/var/run/hostapd-$ifname.maclist" + echo "" > "$macfile" else if [ -n "$maclist" ] then |