]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/system/mounttmpfs
ipsec-interfaces: Apply static routes (again) after creating IPsec interfaces
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / mounttmpfs
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
12 case "${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 ;;
31 esac
32
33 # End $rc_base/init.d/mounttmpfs