Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 3619 Details for
Bug 7408
Script to create and use ramdisk
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
script to create ramdisk
etc_init.d_ramdisk (text/plain), 1.19 KB, created by
Perzy Hannaman
on 2002-09-03 05:30:50 UTC
(
hide
)
Description:
script to create ramdisk
Filename:
MIME Type:
Creator:
Perzy Hannaman
Created:
2002-09-03 05:30:50 UTC
Size:
1.19 KB
patch
obsolete
>#!/sbin/runscript ># Written by delta407 (delta407@lerfjhax.com) ># Distributed under the terms of the GNU General Public License, v2 or later > >depend() { > need localmount >} > >start() { > mkdir -p ${RDPATH} > for MP in ${RAMDISKS}; do > MPN=`echo ${MP} | sed -e 's/\//-/g' -e 's/^-//g' -e 's/-$//g'` > > ebegin "Starting ramdisk on ${MP}" > > TARCMD="tar xpf${RDTAROPTS} ${RDPATH}/${MPN}${RDTARSUFFIX}" > [[ -e ${RDPATH}/${MPN}${RDTARSUFFIX} ]] || TARCMD="true" > > touch ${RDPATH}/${MPN}${RDTARSUFFIX} > mount ${MPN} ${MP} -t tmpfs && \ > cd ${MP}/.. && \ > `${TARCMD}` > eend $? > done >} > >stop() { > mkdir -p ${RDPATH} > for MP in ${RAMDISKS}; do > MPN=`echo ${MP} | sed -e 's/\//-/g' -e 's/^-//g' -e 's/-$//g'` > ebegin "Stopping ramdisk on ${MP}" > cd ${MP}/.. && \ > tar cpf${RDTAROPTS} ${RDPATH}/${MPN}${RDTARSUFFIX} `basename ${MP}` && \ > umount ${MP} > eend $? > done >}
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 7408
:
3618
| 3619