HEX
Server: Apache/2.2.22 (Debian)
System: Linux martin 3.2.0-6-amd64 #1 SMP Debian 3.2.102-1 x86_64
User: otzyv-tut.ru (515)
PHP: 7.1.20
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: //etc/rcS.d/S11udev-mtab
#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          udev-mtab
# Required-Start:    udev $local_fs
# Required-Stop:     
# Default-Start:     S
# Default-Stop:
# Short-Description: Add to mtab the entry for /dev.
### END INIT INFO

PATH="/sbin:/bin"

case "$1" in
  start) ;;
  stop|restart|force-reload) exit 0 ;;
  *) echo "Usage: $0 {start|stop|restart|force-reload}" >&2; exit 1 ;;
esac

# copy the rules generated before / was mounted read-write
for file in /dev/.udev/tmp-rules--* /run/udev/tmp-rules--*; do
  dest=${file##*tmp-rules--}
  [ "$dest" = '*' ] && continue
  cat $file >> /etc/udev/rules.d/$dest
  rm -f $file
done


# if it's not, it's probably a symlink to /proc/mounts
[ -w /etc/mtab ] || exit 0

# defaults
tmpfs_size="10M"
udev_root="/dev/"

if [ -e /etc/udev/udev.conf ]; then
  . /etc/udev/udev.conf
fi

# strip the trailing slash
udev_root=${udev_root%/}

if mountpoint -q $udev_root; then
  if ! grep -E --quiet --no-messages "^[^ ]+ +$udev_root +" /etc/mtab; then
    mtabline="$(grep -E --no-messages "^[^ ]+ +$udev_root +(dev)?tmpfs +" /proc/mounts || true)"
    if [ "$mtabline" ]; then
      echo "$mtabline" >> /etc/mtab
    fi
  fi
fi

exit 0