403Webshell
Server IP : 81.2.241.106  /  Your IP : 216.73.216.165
Web Server : Apache/2.4.67 (Debian)
System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : lisky ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/xfer/from_smeagol/etc/init.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/xfer/from_smeagol/etc/init.d/mountoverflowtmp
#! /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

:

Youez - 2016 - github.com/yon3zu
LinuXploit