1
0
mirror of https://github.com/samba-team/samba.git synced 2025-04-30 18:53:31 +03:00
Andrew Bartlett 612eec4aa7 s4:scripting/devel Allow tmpfs script to be re-run
By doing the unmount, we can avoid double-mounting st and bin
2010-02-25 08:26:09 +11:00

17 lines
476 B
Bash
Executable File

#!/bin/bash
# This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
# time waiting on the disk!
sudo echo "About to (re)mount bin and st as tmpfs"
rm -rf bin st
sudo umount bin > /dev/null 2>&1
sudo umount st > /dev/null 2>&1
mkdir -p bin st || exit 1
sudo mount -t tmpfs /dev/null bin || exit 1
sudo chown $USER bin || exit 1
echo "tmpfs setup for bin/"
sudo mount -t tmpfs /dev/null st || exit 1
sudo chown $USER st || exit 1
echo "tmpfs setup for st/"