小编Jef*_*eff的帖子

有没有办法在我的 wifi 接入点上列出连接的设备?

我有一个 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)

iwconfigiwgetidiwpriv并且iwspy也出现在/sbin,但好像没有选项来显示的客户名单。

wifi angstrom

33
推荐指数
3
解决办法
7万
查看次数

如何每 60 秒重启一次 Linux 系统?

我正在调试一些运行 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)

并且文件系统处于只读模式。我不确定为什么会发生这种情况,或者是否有其他方法可以做到这一点 - 我愿意接受建议,谢谢

linux busybox

4
推荐指数
1
解决办法
2720
查看次数

标签 统计

angstrom ×1

busybox ×1

linux ×1

wifi ×1