mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
34 lines
668 B
Bash
34 lines
668 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/mounttmpfs
|
|
#
|
|
# Description : Mount tmpfses
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg -n "Mounting ramdisk file systems:" ${INFO}
|
|
|
|
if ! mountpoint /var/lock &>/dev/null; then
|
|
boot_mesg -n " /var/lock" ${NORMAL}
|
|
mount -n -t tmpfs -o nosuid,nodev,size=8M /var/lock /var/lock || failed=1
|
|
fi
|
|
|
|
boot_mesg "" ${NORMAL}
|
|
|
|
(exit ${failed})
|
|
evaluate_retval
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/mounttmpfs
|