wok 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 (10 months ago)
parents 793ee168a093
children 6a1c02baeaf8
files linux-zram/stuff/compcache linux64-zram/stuff/compcache
line diff
     1.1 --- a/linux-zram/stuff/compcache	Wed Nov 27 16:57:11 2019 +0100
     1.2 +++ b/linux-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
     2.1 --- a/linux64-zram/stuff/compcache	Wed Nov 27 16:57:11 2019 +0100
     2.2 +++ b/linux64-zram/stuff/compcache	Thu Nov 28 07:37:48 2019 +0100
     2.3 @@ -19,7 +19,7 @@
     2.4      action 'Loading module...'
     2.5      devices=$(awk '/cpu cores/{c=$4} /processor/{p++}
     2.6  	END { if (c>0) p=c; if (p==0) p++; print p }' /proc/cpuinfo)
     2.7 -    modprobe zram zram_num_devices=$devices &&
     2.8 +    modprobe zram num_devices=$devices &&
     2.9      [ -n "$SIZE_KB" ] && for i in $(seq 0 $(($devices-1))); do
    2.10  	echo $(($SIZE_KB * 1024 / $devices)) > /sys/block/zram$i/disksize
    2.11      done