cd /System/Library/StartupItems
sudo mkdir RamFS
sudo chown -R root:wheel RamFS
sudo chmod -R u+rwX,g+rX,o+rX RamFS
cat << «EOF» | sudo tee RamFS/RamFS > /dev/null
RAMDisk() {
mntpt$1=
rdsize$210241024512= $((**/))
echo «Creating RamFS for $mntpt»
dev`hdik -drivekey system-image`==yes -nomount ram://$rdsize
$?-eq 0 if [ ] ; then
newfs_hfs $dev
eval `/usr/bin/stat -s $mntpt`
mount -t hfs -o union -o nobrowse $dev $mntpt
chown $st_uid:$st_gid $mntpt
chmod $st_mode $mntpt
fi
}
$1if [ -z ]; then
echo«Usage: $0 [start|stop|restart] «
exit 1
fi
test -r /etc/rc.common exit 1 ||
. /etc/rc.common
StartService () {
ConsoleMessage «Starting RamFS disks...»
RAMDisk /private/tmp 256
RAMDisk /var/run 64