diff --git a/lfs/hostapd b/lfs/hostapd index e9286684b..f393d9179 100644 --- a/lfs/hostapd +++ b/lfs/hostapd @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2015 IPFire Team # +# Copyright (C) 2007-2016 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = hostapd -PAK_VER = 34 +PAK_VER = 35 DEPS = "" diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd index 209f969de..02e8c1614 100644 --- a/src/initscripts/init.d/hostapd +++ b/src/initscripts/init.d/hostapd @@ -73,7 +73,9 @@ case "${1}" in /usr/sbin/iw reg set $COUNTRY /usr/sbin/iwconfig $INTERFACE channel $CHANNEL 2>/dev/null - /usr/sbin/iwconfig $INTERFACE txpower $TXPOWER + + ip link set ${INTERFACE} up 2>/dev/null + /usr/sbin/iwconfig $INTERFACE txpower $TXPOWER 2>/dev/null /usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &