StarWhiz / NanoPi-R6S-CPU-Optimization-for-Gigabit-SQM

NanoPi R6S CPU Optimization and Other Notes! Go from 800 Mbps cake SQM to 1400+ Mbps cake SQM!
16 stars 1 forks source link

NanoPi R4S checkaffinity.sh Error #4

Open adamshumpisxxx opened 4 months ago

adamshumpisxxx commented 4 months ago

When I run:

sh checkaffinity.sh (because ./checkaffinity.sh doesn't work)

I get back:

Screenshot 2024-06-22 164758

I believe everything is working in relation to your actual tweaks based on the output but I'd like to rectify this simple error to be sure if I could. Any insight on how I could not only check to make sure everything is running as intended but also fix this little checker script? Thanks!

adamshumpisxxx commented 4 months ago

Here is a copy of my checkaffinity.sh as well:

Screenshot 2024-06-22 170343

deltaalpha33 commented 4 months ago

I had the same issue. According to openwrt wiki it should be #!/bin/sh.

https://openwrt.org/docs/guide-developer/write-shell-script#the_shebang_operator_and_shell_scripting_for_openwrt

adamshumpisxxx commented 4 months ago

I had the same issue. According to openwrt wiki it should be #!/bin/sh.

https://openwrt.org/docs/guide-developer/write-shell-script#the_shebang_operator_and_shell_scripting_for_openwrt

If that were the case checkaffinity,sh wouldn't work at all, no? it DOES work like 90% as it is. I'm not sure if that's accurate.

deltaalpha33 commented 4 months ago

Sorry, I got mixed up as I had both this issue as well as an issue with the shell and mixed them up. I opened a separate issue for the using #!/bin/sh .