Merge pull request #1300 from helios-4/helios4-wol
[ helios4 ] Enable WoL for eth0
This commit is contained in:
commit
824fcbf744
@ -60,4 +60,10 @@ family_tweaks_s()
|
||||
# modify mdadm configuration
|
||||
echo -e "\n # Trigger Fault Led script when an event is detected" >> $SDCARD/etc/mdadm/mdadm.conf
|
||||
echo -e "PROGRAM /usr/sbin/mdadm-fault-led.sh" >> $SDCARD/etc/mdadm/mdadm.conf
|
||||
|
||||
### Ethernet tweaks
|
||||
|
||||
# copy and enable helios4-wol.service
|
||||
cp $SRC/packages/bsp/helios4/helios4-wol.service $SDCARD/usr/lib/systemd/system/
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable helios4-wol.service >/dev/null 2>&1"
|
||||
}
|
||||
|
||||
11
packages/bsp/helios4/helios4-wol.service
Normal file
11
packages/bsp/helios4/helios4-wol.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Enable Wake-on-LAN for Helios4 eth0
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/sbin/ethtool -s eth0 wol g
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in New Issue
Block a user