scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

ro-openbsd (521B)


      1 #!/bin/sh -xe
      2 pkg_add rsync
      3 mkdir -p /mfs/{dev,var}
      4 cp /dev/MAKEDEV /mfs/dev
      5 cd /mfs/dev
      6 sh MAKEDEV all
      7 rsync -vhaz --delete -f "- *.sock" /var/ /mfs/var/
      8 sed -i 's/ffs rw/ffs ro/' /etc/fstab
      9 echo "swap /dev mfs rw,-P=/mfs/dev,-s=8m 0 0" >> /etc/fstab
     10 echo "swap /var mfs rw,-P=/mfs/var,-s=32m 0 0" >> /etc/fstab
     11 echo "swap /tmp mfs rw,-s=24m 0 0" >> /etc/fstab
     12 cp /etc/examples/rc.shutdown /etc
     13 cat << EOF >> /etc/rc.shutdown
     14 mount -uw /
     15 /usr/local/bin/rsync -vhaz --delete -f "- *.sock" /var/ /mfs/var/
     16 mount -ur /
     17 EOF