hostapd: truncate default mac file before adding entries to it (#13797)
SVN-Revision: 37114
This commit is contained in:
parent
5986a18c16
commit
7c197d9f0e
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=hostapd
|
PKG_NAME:=hostapd
|
||||||
PKG_VERSION:=20130630
|
PKG_VERSION:=20130630
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_REV:=9e6a321815f924e1e42896538d639e62d7786f6a
|
PKG_REV:=9e6a321815f924e1e42896538d639e62d7786f6a
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
|
@ -220,7 +220,9 @@ hostapd_set_bss_options() {
|
|||||||
if [ -z "$macfile" ]
|
if [ -z "$macfile" ]
|
||||||
then
|
then
|
||||||
# if no macfile has been specified, fallback to the default name
|
# 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"
|
macfile="/var/run/hostapd-$ifname.maclist"
|
||||||
|
echo "" > "$macfile"
|
||||||
else
|
else
|
||||||
if [ -n "$maclist" ]
|
if [ -n "$maclist" ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user