Tiny Core Extensions > TCE 2.x
hostapd - wifi AP daemon
aris:
Hi Poliko and Rich
here it is..still no luck
--- Code: ---tc@box:~$ ps | grep hostapd
1011 tc grep hostapd
tc@box:~$ cat /opt/bootlocal.sh
!/bin/sh
# put other system startup commands here
#busybox httpd
#/usr/local/httpd/sbin/httpd -p 80 -h /mnt/sda1/wwwsite
#apache2mod
#rm -rf /usr/local/apache2/htdocs
#ln -s /opt/apache2/htdocs /usr/local/apache2/htdocs
#ln -sf /opt/apache2/httpd.conf /usr/local/apache2/conf/
#apachectl start
#eth0 205
/opt/eth0.sh
/opt/wlan0.sh
#hostapd -B /usr/local/etc/config/hostapd.conf 2>&1 | tee /tmp/hostapd.log
/usr/local/bin/hostapd -B /usr/local/etc/config/hostapd.conf 2>&1 | tee /tmp/hostapd.log
/usr/local/etc/init.d/openssh start &
tc@box:~$ cat /tmp/hostapd.log
--- End code ---
and yes I add the /usr/local/etc/config/ folder in /opt/.filetool.lst and backup
Rich:
Hi aris
Poliko was correct. I was mistaken, the correct syntax is:
--- Code: ---#!/bin/sh
--- End code ---
aris:
I tried with
#!/bin/sh and also with !/bin/sh..same thing..no log on /tmp/hostapd.log (file exist but no content)
and hostapd is not start.
Rich:
Hi aris
It definitely has to be:
--- Code: ---#!/bin/sh
--- End code ---
so make sure you've changed it back. I suspect the hostapd command is not being executed. Use the ps command and
see if any of the following are still running:
bootlocal.sh
eth0.sh
wlan0.sh
If eth0.sh or wlan0.sh are still running, post their contents.
polikuo:
--- Quote from: Rich on December 29, 2017, 12:07:04 AM ---see if any of the following are still running:
bootlocal.sh
eth0.sh
wlan0.sh
If eth0.sh or wlan0.sh are still running, post their contents.
--- End quote ---
I don't think they'd still be running, however "openssh" most likely would be.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version