Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 213624 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]
sys-block/compcache/files/init.d-compcache
init.d-compcache (text/plain), 1.20 KB, created by
Victor Tseng
on 2009-12-21 00:44:27 UTC
(
hide
)
Description:
sys-block/compcache/files/init.d-compcache
Filename:
MIME Type:
Creator:
Victor Tseng
Created:
2009-12-21 00:44:27 UTC
Size:
1.20 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2009 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 > einfo "Loading ramzswap module..." > modprobe ramzswap num_devices=${NUM_DEVICES} > eend $? > fi > > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > eval _a=\${RAMZSWAP_OPTS_${I}} > einfo "Enabling swap /dev/ramzswap${I}..." > rzscontrol "/dev/ramzswap${I}" --init $_a > swapon ${SWAPON_OPTS} "/dev/ramzswap${I}" > eend $? > done >} > >stop() { > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > einfo "Disabling swap /dev/ramzswap${I}..." > swapoff "/dev/ramzswap${I}" && \ > rzscontrol "/dev/ramzswap${I}" --reset > eend $? > done > > if [ "${UNLOAD_ON_STOP}" = "yes" ] ; then > einfo "Unloading ramzswap module..." > rmmod ramzswap > eend $? > fi >} > >info() { > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > rzscontrol "/dev/ramzswap${I}" --stats > done >} > >reload() { > for I in `seq 0 \`expr ${NUM_DEVICES} - 1\`` ; do > swapoff "/dev/ramzswap${I}" && \ > rzscontrol "/dev/ramzswap${I}" --reset && \ > swapon ${SWAPON_OPTS} "/dev/ramzswap${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