#!/bin/bash -x

DATE=`date +%Y%m%d-%H%M%S`;
HOST=`hostname --fqdn`;

ulimit -c 1000000
rm -f core*

# We need the radio emulation driver as well.
modprobe mac80211_hwsim || exit 1

# echo hap-$HOST-$DATE.log > /home/aaa/logs/LATEST-$HOST-hap.log
# /root/hostapd/hostapd/hostapd -dd /root/conf/hostapd/hostapd.conf 2>&1 | tee -i /home/aaa/logs/hap-$HOST-$DATE.log
/root/hostapd/hostapd/hostapd -dd /root/conf/hostapd/hostapd.conf 
