Skip to content

Commit

Permalink
add "-mausi_wol" bootargument
Browse files Browse the repository at this point in the history
When "-mausi_wol" is set, WOL will be availiable.
  • Loading branch information
fischerscode committed Jan 20, 2020
1 parent 9187d1a commit e9275d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 5 additions & 2 deletions IntelMausiEthernet/IntelMausiEthernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ bool IntelMausi::init(OSDictionary *properties)

result = super::init(properties);

bool tmp = 0;
bool wol = PE_parse_boot_argn("-mausi_wol", &tmp, 0);

if (result) {
workLoop = NULL;
commandGate = NULL;
Expand Down Expand Up @@ -171,8 +174,8 @@ bool IntelMausi::init(OSDictionary *properties)
pciDeviceData.revision = 0;
adapterData.pdev = &pciDeviceData;
mtu = ETH_DATA_LEN;
wolCapable = true;
wolActive = true;
wolCapable = wol;
wolActive = wol;
enableTSO4 = false;
enableTSO6 = false;
enableCSO6 = false;
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# IntelMausiEthernet-WOL
Fork from IntelMausiEthernet with WOL functionality after complete shutdown.
https://github.com/Mieze/IntelMausiEthernet

To enable WOL just add the bootargument "-mausi_wol".

This only works as a replacement for IntelMausiEthernet.kext.
Please make a backup EFI folder on a thumbdrive bevore you try IntelMausiEthernet-WOL.kext.

@xenio came up with this idea:
https://github.com/Mieze/IntelMausiEthernet/issues/17#issuecomment-424290662
Huge thanks to him!

# IntelMausiEthernet
OS X driver for Intel onboard LAN

Expand Down

0 comments on commit e9275d8

Please sign in to comment.