Merge pull request #1300 from helios-4/helios4-wol

[ helios4 ] Enable WoL for eth0
This commit is contained in:
Igor Pečovnik 2019-03-03 17:33:31 +01:00 committed by GitHub
commit 824fcbf744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -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"
}

View 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