Tiny Core Extensions > TCE 2.x
hostapd - wifi AP daemon
Rich:
Hi aris
--- Quote from: aris on December 21, 2017, 04:58:02 AM ---
--- Code: ---tc@box:~$ cat /opt/bootlocal.sh
#!/bin/sh
sudo hostapd -B /usr/local/etc/config/hostapd.conf
/usr/local/etc/init.d/openssh start &
--- End code ---
--- End quote ---
Is that the full result of the cat command or are there other entries in your bootlocal.sh file?
aris:
Hi Rich
here is full bootlocal.sh
--- Code: ---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
hostapd -B /usr/local/etc/config/hostapd.conf
/usr/local/etc/init.d/openssh start &
tc@box:~$
--- End code ---
Rich:
Hi aris
Try changing:
--- Code: ---#!/bin/sh
--- End code ---
to:
--- Code: ---!/bin/sh
--- End code ---
polikuo:
Hi Rich.
--- Quote from: Rich on December 27, 2017, 09:43:11 AM ---Hi aris
Try changing:
--- Code: ---#!/bin/sh
--- End code ---
to:
--- Code: ---!/bin/sh
--- End code ---
--- End quote ---
I don't think shebang works that way.
Maybe you could try it this way instead.
--- Code: ---/usr/local/bin/hostapd -B /usr/local/etc/config/hostapd.conf 2>&1 | tee /tmp/hostapd.log
--- End code ---
Read the log file to see what happened.
BTW, it looks like there's no such file by default. (/usr/local/etc/config/hostapd.conf)
Did you add it into your /opt/.filetool.lst and backup ?
Rich:
Hi polikuo
--- Quote from: polikuo on December 27, 2017, 11:58:58 AM ---Hi Rich.
--- Quote from: Rich on December 27, 2017, 09:43:11 AM ---Hi aris
Try changing:
--- Code: ---#!/bin/sh
--- End code ---
to:
--- Code: ---!/bin/sh
--- End code ---
--- End quote ---
I don't think shebang works that way.
--- End quote ---
You are of course correct. I saw everything being commented out and my brain somehow shifted into stupid instead of drive. :o
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version