]> git.ipfire.org Git - ipfire-2.x.git/blame - src/initscripts/init.d/mounttmpfs
initscripts: Mount /var/lock after all other FSes have been mounted.
[ipfire-2.x.git] / src / initscripts / init.d / mounttmpfs
CommitLineData
722b419d
MT
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/mounttmpfs
4#
5# Description : Mount tmpfses
6#
7########################################################################
8
9. /etc/sysconfig/rc
10. ${rc_functions}
11
12case "${1}" in
13 start)
14 boot_mesg -n "Mounting ramdisk file systems:" ${INFO}
15
16 if ! mountpoint /var/lock &>/dev/null; then
17 boot_mesg -n " /var/lock" ${NORMAL}
18 mount -n -t tmpfs -o nosuid,nodev,size=8M /var/lock /var/lock || failed=1
19 fi
20
21 boot_mesg "" ${NORMAL}
22
23 (exit ${failed})
24 evaluate_retval
25 ;;
26
27 *)
28 echo "Usage: ${0} {start}"
29 exit 1
30 ;;
31esac
32
33# End $rc_base/init.d/mounttmpfs