Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

load.sh have a error #52

Closed
fslq123 opened this issue Apr 17, 2020 · 10 comments
Closed

load.sh have a error #52

fslq123 opened this issue Apr 17, 2020 · 10 comments
Labels
bug Something isn't working

Comments

@fslq123
Copy link

fslq123 commented Apr 17, 2020

Describe the bug
./scripts/load.sh: line 10: .unload.sh: command not found

How to reproduce
./scripts/build.sh && ./scripts/load.sh

Deal with methods

1.Edit load.sh
2.Change '(.unload.sh | true)' to '(./scripts/unload.sh | true)

@fslq123 fslq123 added the bug Something isn't working label Apr 17, 2020
@fslq123
Copy link
Author

fslq123 commented Apr 17, 2020

And when I make the code 'sudo kextload -v AppleIntelWifiAdapterV2.kext' ,It appears an error that 'Requesting load of /Users/fslq/Downloads/AppleIntelWifiV2/AppleIntelWifiAdapterV2.kext.
/Users/fslq/Downloads/AppleIntelWifiV2/AppleIntelWifiAdapterV2.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).'
What should I do? And my OS is 10.15.4,8265AC.

@williambj1
Copy link

It's because you're launching the script in a wrong Dir, cd into the scripts folder first.

I think it's better to use PWD and dirname to solve this.

@fslq123
Copy link
Author

fslq123 commented Apr 17, 2020

Ok,enn, the first issue reason I know.

@tvhung83
Copy link

tvhung83 commented Apr 17, 2020

It's because you're launching the script in a wrong Dir, cd into the scripts folder first.

Check README, it's saying to run ./scripts/build.sh && ./scripts/load.sh, ie. you have to be at root project dir. Anyway, it's not a big deal, but I'd rather print something before I expect key input.

@tvhung83
Copy link

And when I make the code 'sudo kextload -v AppleIntelWifiAdapterV2.kext' ,It appears an error that 'Requesting load of /Users/fslq/Downloads/AppleIntelWifiV2/AppleIntelWifiAdapterV2.kext.
/Users/fslq/Downloads/AppleIntelWifiV2/AppleIntelWifiAdapterV2.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).'
What should I do? And my OS is 10.15.4,8265AC.

It's in top at issue list. Author is aware about it, don't post duplicated issue.

@hatf0
Copy link
Member

hatf0 commented Apr 17, 2020

There’s already an env script that’s sourced and pulls the kext from the local build folder. Bypassing that is obviously not a bug, but I can easily fix the unload issue.

@williambj1
Copy link

It's because you're launching the script in a wrong Dir, cd into the scripts folder first.

Check README, it's saying to run ./scripts/build.sh && ./scripts/load.sh, ie. you have to be at root project dir. Anyway, it's not a big deal, but I'd rather print something before I expect key input.

Oops, I missed that, thanks for pointing out, I usually type in the commands manually LOL.

@fslq123
Copy link
Author

fslq123 commented Apr 17, 2020

Okey,l ignore this issue, thanks a lot.

@tvhung83
Copy link

@fslq123 please close it to not pollute issue list 🙂

@fslq123 fslq123 closed this as completed Apr 17, 2020
@fslq123
Copy link
Author

fslq123 commented Apr 17, 2020

okey

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants