Add hostapd.conf

This commit is contained in:
2017-04-10 16:12:45 +02:00
parent fc5c981825
commit fae70a0052
3 changed files with 17 additions and 1 deletions

View File

@ -762,6 +762,17 @@ if [ -f ${base_dir}/${network}/radvd.conf.${network} ]; then
fi
fi
if [ -f ${base_dir}/${network}/hostapd.conf.${network} ]; then
echo -en "\tConfigure hostapd (integrated Accesspoint).."
cp -a ${base_dir}/${network}/hostapd.conf.${network} /etc/hostapd/hostapd.conf > $logfile 2>&1
if [ "$?" != "0" ]; then
echo_FAILED
error $(cat $logfile)
else
echo_OK
fi
fi
if $_add_support_if ; then
if ! grep -e "eth1:rescue " /etc/network/interfaces > /dev/null ; then