Server IP : 127.0.0.2 / Your IP : 18.117.151.179 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 case `dpkg --print-architecture` in kfreebsd-*) # No migration from GRUB Legacy, no Linux cmdline exit 0 ;; esac . /usr/share/debconf/confmodule priority=medium case grub-pc in grub-pc) if test -e /boot/grub/stage2 && test -e /boot/grub/menu.lst && ! test -e /boot/grub/core.img ; then db_input high grub-pc/chainload_from_menu.lst || true db_get grub-pc/kopt_extracted || true # this check ensures we only do this once if [ "$RET" = "false" ] ; then kopt=`sed -ne "s/^# kopt=//p" /boot/grub/menu.lst | tr -s " " "\n" | grep -vx "\(ro\|root=[^ ]*\)" | paste -s -d ' '` || true db_set grub2/linux_cmdline "${kopt}" || true db_set grub-pc/kopt_extracted true || true if [ "${kopt}" = "" ] ; then # something smells bad. give user a chance to correct it. priority=high else # if we got something from menu.lst, it must be correct? priority=medium fi timeout=`sed -ne "s/^timeout[[:space:]][[:space:]]*//p" /boot/grub/menu.lst` || true if [ "${timeout}" != "" ]; then db_set grub-pc/timeout "${timeout}" || true fi if grep -q '^hiddenmenu\([[:space:]]\|$\)' /boot/grub/menu.lst; then db_set grub-pc/hidden_timeout true || true else db_set grub-pc/hidden_timeout false || true fi fi fi ;; esac for x in /etc/default/grub /etc/default/grub.d/*.cfg ; do if [ -e "$x" ]; then . "$x" fi done if [ "${GRUB_CMDLINE_LINUX+set}" = set ]; then db_set grub2/linux_cmdline "$GRUB_CMDLINE_LINUX" fi if [ "${GRUB_CMDLINE_LINUX_DEFAULT+set}" = set ]; then db_set grub2/linux_cmdline_default "$GRUB_CMDLINE_LINUX_DEFAULT" fi case grub-pc in grub-pc) if [ "${GRUB_TIMEOUT}" != "" ]; then db_set grub-pc/timeout "$GRUB_TIMEOUT" fi if [ "${GRUB_HIDDEN_TIMEOUT}" != "" ]; then db_set grub-pc/hidden_timeout true elif egrep -qs '^#?[[:space:]]*GRUB_HIDDEN_TIMEOUT=' /etc/default/grub; then db_set grub-pc/hidden_timeout false fi ;; esac db_input ${priority} grub2/linux_cmdline || true db_input medium grub2/linux_cmdline_default || true case grub-pc in grub-*efi*) db_input low grub2/force_efi_extra_removable || true ;; esac case grub-pc in grub-*efi*|grub-ieee1275) db_input low grub2/update_nvram || true ;; esac db_go