我有一个 Angstrom Linux 设备作为接入点,运行hostapd, dhcpd,工作正常。我可以获得连接到 Wi-Fi 的设备列表吗?我知道我可以获得 DHCP 租约,但我需要知道哪些设备通过wlan0. 我试过这个(iwlist有选项):
iwlist wlan0 ap
iwlist wlan0 accesspoints
iwlist wlan0 peers
Run Code Online (Sandbox Code Playgroud)
但都返回:
wlan0 Interface doesn't have a list of Peers/Access-Points
Run Code Online (Sandbox Code Playgroud)
iwconfig,iwgetid,iwpriv并且iwspy也出现在/sbin,但好像没有选项来显示的客户名单。
我正在调试一些运行 Linux 3.2.6 Angstrom 发行版的嵌入式硬件,我需要设备每 60 秒重新启动一次。我试过这个:
In /etc/rc5.d : S99reboot -> /home/root/test.sh
/home/root/test.sh contains only this: /home/root/rebootunit.sh&
/home/root/rebootunit.sh has this:
echo "sleep 60 and reboot"
sleep 60
reboot
Run Code Online (Sandbox Code Playgroud)
从命令行工作正常,但从启动运行时,单元开始关闭,然后卡住:
Deactivating swap...
Unmounting local filesystems...
Give root password for system maintenance
(or type Control-D for normal startup):
Run Code Online (Sandbox Code Playgroud)
并且文件系统处于只读模式。我不确定为什么会发生这种情况,或者是否有其他方法可以做到这一点 - 我愿意接受建议,谢谢