SSH open the terminal and enter the following command to install ethtool:
sudo apt-gate update sudo apt-get install athtoolUse the ifconfig command to view the NIC name and MAC address:
sudo ifconfigUsually the NIC name is enp0s0 or similar.
Check whether the NIC supports WOL:
sudo ethtool enp0s0 | grep -i wake-onIf Wake-on: d is displayed, WOL is not enabled. Use the following command to enable WOL:
sudo ethtool -s enp0s0 wol gDouble-check to confirm:
sudo ethtool enp0s0 | grep -i wake-on應顯示 Wake-on: g
Since the WOL setting may become invalid after a reboot, you need to set up a boot auto-start script:
To create the rc.local file, enter the following two commands:
cd /etc/ sudo touch rc.local編輯 rc.local 檔,輸入:vi rc.local 添加以下內容:
#!/bin/sh -e sudo athtool -s enp0s0 wall g exit 0Grant Execution Permissions:
sudo chmod +x /etc/rc.localEnable and start the service:
sudo systemctl enable rc-local sudo systemctl start rc-local.service sudo systemctl status rc-local.serviceThrough the above steps, you can successfully enable the Wake-on-LAN function on Feiniu OS.