update to handle very low mem systems
This commit is contained in:
parent
e0713185f6
commit
58bbb0b550
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
|
@ -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)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user