[ User ] Login

Bug 230: CLOSED

Mistakes in /etc/init.d/compcache script

Date: 2019-11-26 - Creator: anonymous - Priority standard - 2 messages

1. it just does not work
solution is to change 
modprobe zram zram_num_devices
to
modprobe zram num_devices

2. Overflow here, when size is more than approx. 2Gb
$(($SIZE_KB README bug bug-20170222 bug-20171121 bugs.cgi bugs.cgi.all 
bugs.cgi.out bugs2.cgi config.cgi favicon.ico images index.cgi lib messages.mo 
plugins robots.txt style.css 1024 / $devices))
Should be rewritten using awk.

Affected package(s): linux-zram

Messages

By: anonymous on 2019-11-26 22:22

and bug in slitaz bugs, just copied part of line 24 from 
/etc/init.d/compcache. 
similar buggy calculation is in post-install of receipt, but for 32 bit version 
only

By: bellard on 2019-11-28 09:23

1-  hg.slitaz.org/wok/rev/5cfd86a4f9d1
2-  hg.slitaz.org/wok/rev/804a303f31dc

Thanks for the report.