Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 260806 Details for
Bug 252987
New ebuild: compcache
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new initd-compcache
init.d-compcache (text/plain), 1.48 KB, created by
Luke McKinlay
on 2011-01-26 19:23:58 UTC
(
hide
)
Description:
new initd-compcache
Filename:
MIME Type:
Creator:
Luke McKinlay
Created:
2011-01-26 19:23:58 UTC
Size:
1.48 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >depend() { > need localmount > after bootmisc modules >} > >start() { > if [ "${LOAD_ON_START}" = "yes" ] ; then > if ! grep zram /proc/devices >/dev/null ; then > einfo "Loading zram module..." > modprobe zram num_devices=${NUM_DEVICES} > eend $? > fi > fi > # exit if the driver is not yet installed > grep zram /proc/devices >/dev/null || exit 1 > > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > eval _a=\${ZRAM_SIZE_${I}} > einfo "Enabling swap /dev/zram${I}..." > if test ! -z ${_a} && test -f /sys/block/zram${I}/disksize ; then > echo $(($_a*1024)) > "/sys/block/zram${I}/disksize" > mkswap -L zram{I} /dev/zram${I} ${_a} > fi > if test -b "/dev/zram${I}" ; then > swapon ${SWAPON_OPTS} "/dev/zram${I}" > fi > eend $? > done >} > >stop() { > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > einfo "Disabling swap /dev/zram${I}..." > swapoff "/dev/zram${I}" && \ > echo 1 > "/sys/block/zram${I}/reset" > eend $? > done > > if [ "${UNLOAD_ON_STOP}" = "yes" ] && grep zram /proc/modules >/dev/null ; then > einfo "Unloading zram module..." > rmmod zram > eend $? > fi >} > >info() { > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > zram_stats "/dev/zram${I}" > done >} > >reload() { > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > swapoff "/dev/zram${I}" && \ > echo 1 > "/sys/block/zram${I}/reset" > swapon ${SWAPON_OPTS} "/dev/zram${I}" > done >} > >restart() { > stop > start >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 252987
:
176741
|
176742
|
176744
|
176912
|
177319
|
192654
|
200151
|
200153
|
213623
|
213624
|
213627
|
221141
|
239721
|
239723
|
260804
|
260806
|
260808
|
260809