source: vendor/current/source4/scripting/devel/tmpfs.sh

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 480 bytes
Line 
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
6sudo echo "About to (re)mount bin and st as tmpfs"
7rm -rf bin st
8sudo umount bin > /dev/null 2>&1
9sudo umount st > /dev/null 2>&1
10mkdir -p bin st || exit 1
11sudo mount -t tmpfs /dev/null bin || exit 1
12sudo chown $USER bin/. || exit 1
13echo "tmpfs setup for bin/"
14sudo mount -t tmpfs /dev/null st || exit 1
15sudo chown $USER st/. || exit 1
16echo "tmpfs setup for st/"
Note: See TracBrowser for help on using the repository browser.