summaryrefslogtreecommitdiff
path: root/beagle/debian-rfs/etc/init.d/mountkernfs.sh
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2011-07-18 14:00:12 +0200
committerManuel Traut <manut@mecka.net>2011-07-18 14:00:12 +0200
commited006a8eb44831189e152826c692330d0a0cfe3b (patch)
tree66996c44c68a8787e4a35a85aea683975f307767 /beagle/debian-rfs/etc/init.d/mountkernfs.sh
parent4493e8f707e62b9867d9cfd40205115140e7c993 (diff)
delete beagle-dir
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/etc/init.d/mountkernfs.sh')
-rwxr-xr-xbeagle/debian-rfs/etc/init.d/mountkernfs.sh83
1 files changed, 0 insertions, 83 deletions
diff --git a/beagle/debian-rfs/etc/init.d/mountkernfs.sh b/beagle/debian-rfs/etc/init.d/mountkernfs.sh
deleted file mode 100755
index f3222b8..0000000
--- a/beagle/debian-rfs/etc/init.d/mountkernfs.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: mountkernfs
-# Required-Start:
-# Required-Stop:
-# Should-Start: glibc
-# Default-Start: S
-# Default-Stop:
-# Short-Description: Mount kernel virtual file systems.
-# Description: Mount initial set of virtual filesystems the kernel
-# provides and that are required by everything.
-### END INIT INFO
-
-PATH=/sbin:/bin
-. /lib/init/vars.sh
-
-. /lib/lsb/init-functions
-. /lib/init/mount-functions.sh
-
-[ -f /etc/default/tmpfs ] && . /etc/default/tmpfs
-
-do_start () {
- #
- # Get some writable area available before the root is checked
- # and remounted.
- #
- RW_OPT=
- [ "${RW_SIZE:=$TMPFS_SIZE}" ] && RW_OPT=",size=$RW_SIZE"
- domount tmpfs "" /lib/init/rw tmpfs -omode=0755,nosuid$RW_OPT
- touch /lib/init/rw/.ramfs
-
- # Make pidfile omit directory for sendsigs
- mkdir /lib/init/rw/sendsigs.omit.d/
-
- #
- # Mount proc filesystem on /proc
- #
- domount proc "" /proc proc -onodev,noexec,nosuid
-
- #
- # Mount sysfs on /sys
- #
- # Only mount sysfs if it is supported (kernel >= 2.6)
- if grep -E -qs "sysfs\$" /proc/filesystems
- then
- domount sysfs "" /sys sysfs -onodev,noexec,nosuid
- fi
-
- # Mount /var/run and /var/lock as tmpfs if enabled
- if [ yes = "$RAMRUN" ] ; then
- RUN_OPT=
- [ "${RUN_SIZE:=$TMPFS_SIZE}" ] && RUN_OPT=",size=$RUN_SIZE"
- domount tmpfs "" /var/run varrun -omode=0755,nosuid$RUN_OPT
- touch /var/run/.ramfs
- fi
- if [ yes = "$RAMLOCK" ] ; then
- LOCK_OPT=
- [ "${LOCK_SIZE:=$TMPFS_SIZE}" ] && LOCK_OPT=",size=$LOCK_SIZE"
- domount tmpfs "" /var/lock varlock -omode=1777,nodev,noexec,nosuid$LOCK_OPT
- touch /var/lock/.ramfs
- fi
-}
-
-case "$1" in
- "")
- echo "Warning: mountkernfs should be called with the 'start' argument." >&2
- do_start
- ;;
- start)
- do_start
- ;;
- restart|reload|force-reload)
- echo "Error: argument '$1' not supported" >&2
- exit 3
- ;;
- stop)
- # No-op
- ;;
- *)
- echo "Usage: mountkernfs [start|stop]" >&2
- exit 3
- ;;
-esac