update to handle very low mem systems

This commit is contained in:
morrownr 2023-06-28 01:07:09 -05:00
parent e0713185f6
commit 58bbb0b550
2 changed files with 7 additions and 1 deletions

View File

@ -2536,7 +2536,7 @@ uninstall:
sign:
@openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Custom MOK/"
@mokutil --import MOK.der
@$(KSRC)/scripts/sign-file sha256 MOK.priv MOK.der 8821cu.ko
@$(KSRC)/scripts/sign-file sha256 MOK.priv MOK.der 88x2bu.ko
sign-install: all sign install

View File

@ -1,5 +1,8 @@
#!/bin/sh
# Warning: Do not run this script in a terminal. It is designed to be
# run from another script.
# SMEM needs to be set here if dkms build is not initiated by install-driver.sh
SMEM=$(LANG=C free | awk '/Mem:/ { print $2 }')
@ -11,6 +14,9 @@ if [ "$sproc" -gt 1 ]; then
if [ "$SMEM" -lt 1400000 ]; then
sproc=2
fi
if [ "$SMEM" -lt 700000 ]; then
sproc=1
fi
fi
kernelver=${kernelver:-$(uname -r)}