diff options
| author | Manuel Traut <manut@mecka.net> | 2011-07-18 14:00:12 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2011-07-18 14:00:12 +0200 |
| commit | ed006a8eb44831189e152826c692330d0a0cfe3b (patch) | |
| tree | 66996c44c68a8787e4a35a85aea683975f307767 /beagle/debian-rfs/etc/init.d/mountoverflowtmp | |
| parent | 4493e8f707e62b9867d9cfd40205115140e7c993 (diff) | |
delete beagle-dir
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/etc/init.d/mountoverflowtmp')
| -rwxr-xr-x | beagle/debian-rfs/etc/init.d/mountoverflowtmp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/beagle/debian-rfs/etc/init.d/mountoverflowtmp b/beagle/debian-rfs/etc/init.d/mountoverflowtmp deleted file mode 100755 index 1b547d1..0000000 --- a/beagle/debian-rfs/etc/init.d/mountoverflowtmp +++ /dev/null @@ -1,55 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: mountoverflowtmp -# Required-Start: mountall-bootclean -# Required-Stop: umountfs -# Default-Start: S -# Default-Stop: -# Short-Description: mount emergency /tmp. -# Description: Mount a tmpfs on /tmp if there would -# otherwise be too little space to log in. -### END INIT INFO - -. /lib/init/vars.sh -. /lib/lsb/init-functions - -set -e - -defs=/etc/default/mountoverflowtmp -test ! -f "$defs" || . "$defs" - -: ${MINTMPKB:=1024} -if test "$MINTMPKB" = "0"; then exit 0; fi - -case "$1" in - start) - [ "$VERBOSE" != no ] && log_action_begin_msg "Checking minimum space in /tmp" - df="`LC_ALL=C df -kP /tmp | grep -v Filesystem`" - set -- $df - avail="$4" - [ "$VERBOSE" != no ] && log_action_end_msg 0 - if test $avail -lt "$MINTMPKB"; then - log_action_begin_msg "Mounting emergency tmpfs on /tmp" - mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp - log_action_end_msg 0 - fi - ;; - restart|reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 - ;; - stop) - if LC_ALL=C mount | \ - grep '^overflow on /tmp type tmpfs' >/dev/null; then - log_action_begin_msg "Unmounting any overflow tmpfs from /tmp" - umount overflow - log_action_end_msg 0 - fi - ;; - *) - echo "Usage: mountoverflowtmp [start|stop]" >&2 - exit 3 - ;; -esac - -: |
