Bug #1732 » 0003-Use-tmpfs-instead-of-mfs.patch
etc/rc.d/diskless | ||
---|---|---|
# $1 = size
|
||
# $2 = mount point
|
||
mount_md() {
|
||
/sbin/mount_mfs -s $1 swap $2
|
||
/sbin/mount_tmpfs -s `expr $1 '*' 512` tmpfs $2
|
||
}
|
||
# If there is a global system configuration file, suck it in.
|
etc/rc.d/initdiskless | ||
---|---|---|
# Create a generic memory disk
|
||
#
|
||
mount_md() {
|
||
/sbin/mount_mfs -i 4096 -s $1 swap $2
|
||
/sbin/mount_tmpfs -s `expr $1 '*' 512` tmpfs $2
|
||
}
|
||
# Create the memory filesystem if it has not already been created
|