s4-devel: a useful script to setup bin/ and st/ as tmpfs filesystems
[sfrench/samba-autobuild/.git] / source4 / scripting / devel / tmpfs.sh
1 #!/bin/bash
2
3 # This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
4 # time waiting on the disk!
5
6 rm -rf bin st
7 mkdir -p bin st || exit 1
8 sudo mount -t tmpfs /dev/null bin || exit 1
9 sudo chown $USER bin || exit 1
10 echo "tmpfs setup for bin/"
11 sudo mount -t tmpfs /dev/null st || exit 1
12 sudo chown $USER st || exit 1
13 echo "tmpfs setup for st/"