wok diff linux64-zram/stuff/compcache @ rev 22377

linux[64]-zram: modified modprobe command according to bug report 230
author Hans-G?nter Theisgen
date Thu Nov 28 07:37:48 2019 +0100 (2019-11-28)
parents ac1cbda6d814
children 804a303f31dc
line diff
     1.1 --- a/linux64-zram/stuff/compcache	Sun Oct 20 12:39:13 2019 +0200
     1.2 +++ b/linux64-zram/stuff/compcache	Thu Nov 28 07:37:48 2019 +0100
     1.3 @@ -19,7 +19,7 @@
     1.4      action 'Loading module...'
     1.5      devices=$(awk '/cpu cores/{c=$4} /processor/{p++}
     1.6  	END { if (c>0) p=c; if (p==0) p++; print p }' /proc/cpuinfo)
     1.7 -    modprobe zram zram_num_devices=$devices &&
     1.8 +    modprobe zram num_devices=$devices &&
     1.9      [ -n "$SIZE_KB" ] && for i in $(seq 0 $(($devices-1))); do
    1.10  	echo $(($SIZE_KB * 1024 / $devices)) > /sys/block/zram$i/disksize
    1.11      done