Server IP : 127.0.0.2 / Your IP : 18.226.166.64 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 : |
#!/bin/sh set -e MYNAME=resolvconf.preinst report() { echo "${MYNAME}: $*" ; } report_err() { report "Error: $*" >&2 ; } report_warn() { report "Warning: $*" >&2 ; } report_info() { report "$*" >&2 ; } is_installed() { # Same function in preinst, postinst, postrm [ "$1" ] || return 1 dpkg-query -W -f='${Status}\n' "$1" 2>/dev/null | grep -siq '^[[:alpha:]]\+ [[:alpha:]]\+ installed$' >/dev/null 2>&1 } ### Create run-time directories ### # # We create the run-time directories here, in the preinst, so that even if # resolvconf is run before the postinst runs there is nevertheless a place # for resolvconf to store data. The latter can occur if resolvconf # is installed simultaneously with a caching nameserver package whose # postinst runs resolvconf to add its IP address. # case "$1" in install|upgrade) # Ensure that /etc/resolvconf exists. mkdir -p /etc/resolvconf # Ensure that /run/resolvconf/interface exists. mkdir -p /run/resolvconf/interface ;; # abort-upgrade) # Don't do anything because we don't anything in the postrm on upgrade or on failed-upgrade # ;; esac ### Prepare to notify already configured packages of our installation ### case "$1" in install) # Create list of packages that might need to be notified of the installation of resolvconf if [ -d /usr/lib/resolvconf/dpkg-event.d ] ; then NOTIFICATION_HOOK_SCRIPTS="$(cd /usr/lib/resolvconf/dpkg-event.d >/dev/null ; run-parts --test .)" PACKAGES_TO_NOTIFY="" for SCRPT in $NOTIFICATION_HOOK_SCRIPTS ; do PKG="${SCRPT#./}" if is_installed "$PKG" ; then PACKAGES_TO_NOTIFY="${PACKAGES_TO_NOTIFY:+$PACKAGES_TO_NOTIFY }$PKG" fi done rm -f /run/resolvconf/packages-to-notify if [ "$PACKAGES_TO_NOTIFY" ] ; then echo "$PACKAGES_TO_NOTIFY" > /run/resolvconf/packages-to-notify fi fi ;; # upgrade) # Don't do anything # ;; # abort-upgrade) # Don't do anything because we don't anything in the postrm on upgrade or on failed-upgrade # ;; esac exit 0