Add hostapd.conf

This commit is contained in:
Christoph 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

View File

@ -269,6 +269,7 @@ fi
# - /etc/aiccu.conf
# - /etc/default/aiccu
# - /etc/radvd.conf
# - /etc/hostapd/hostapd.conf
# -
if [ -f "${filesystem_prefix}/etc/rc.local" ]; then
cp ${filesystem_prefix}/etc/rc.local ${homedir_user}/${_dir}/rc.local.${_network}
@ -288,6 +289,9 @@ fi
if [ -f "${filesystem_prefix}/etc/radvd.conf" ]; then
cp ${filesystem_prefix}/etc/radvd.conf ${homedir_user}/${_dir}/radvd.conf.${_network}
fi
if [ -f "${filesystem_prefix}/etc/hostapd/hostapd.conf" ]; then
cp ${filesystem_prefix}/etc/hostapd/hostapd.conf ${homedir_user}/${_dir}/hostapd.conf.${_network}
fi
chown ${user}:${user} ${homedir_user}/${_dir}
chown ${user}:${user} ${homedir_user}/${_dir}/*.${_network}

View File

@ -168,7 +168,8 @@ manage_files $files
files="hostname.${_network}
hosts.${_network}
interfaces.${_network}
resolv.conf.${_network}"
resolv.conf.${_network}
hostapd.conf.${_network}"
manage_files $files