etc/services - sync with NetBSD-8
[minix.git] / etc / rc.cd
blobf0dc35119f7fa1e350fa3a263798de339e60e3b0
1 #!/bin/sh
3 # CD boottime initializations.
5 echo -n "Creating ramdisks:"
7 # Set up a ramdisk to make a read-only part of the directory tree writable
8 # $1 : ramdisk dev node to use
9 # $2 : path to make writeable
10 # $3 : ramdisk size in blocks
11 create_ramdisk()
13 echo -n " $2"
14 ramdisk $3 /dev/$1 > /dev/null
15 mkfs.mfs /dev/$1 > /dev/null
17 # copy files
18 mount /dev/$1 /mnt > /dev/null
19 (cd $2 && pax -rw . /mnt)
21 umount /mnt > /dev/null
22 mount /dev/$1 $2 > /dev/null
25 # Create /var ramdisk
26 create_ramdisk ram0 /var 768
27 create_ramdisk ram1 /tmp 128
28 create_ramdisk ram2 /usr/run 64
29 create_ramdisk ram3 /root 512
31 echo