Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / lib / dpkg / info / | server ip : 172.67.156.115 your ip : 172.69.130.154 H O M E |
Filename | /var/lib/dpkg/info/resolvconf.config |
Size | 1.17 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 19-Jan-2013 00:58 |
Last accessed | 06-Jul-2025 22:08 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_input low resolvconf/linkify-resolvconf || :
db_go
db_get resolvconf/linkify-resolvconf
# No need to ask about creating a 'tail' file if we've already asked
# or if /etc/resolv.conf is already a symlink; this is only for initial
# install.
if [ "$RET" = true ] && db_fget resolvconf/link-tail-to-original seen \
&& [ "$RET" = false ] && ! [ -L /etc/resolv.conf ]
then
if ! grep -q nameserver /etc/resolv.conf 2>/dev/null \
|| grep -q '# Generated by NetworkManager' /etc/resolv.conf 2>/dev/null \
|| grep -Eq '^[[:space:]]*(iface[[:space:]]+.*[[:space:]]+inet6?[[:space:]]+dhcp|dns[-_]nameservers[[:space:]]+[0-9A-Fa-f.:[:space:]]+[[:space:]]*(#.*)?$)' /etc/network/interfaces 2>/dev/null
then
# Either the /etc/resolv.conf is empty, or we've found
# at least one indicator that it's dynamically managed
# in at least some circumstances (via ifupdown dhcp,
# ifupdown 'dns-nameserver' static rules, or NM). No point
# in importing the existing nameservers.
db_set resolvconf/link-tail-to-original false
fi
db_input low resolvconf/link-tail-to-original || :
fi
db_input medium resolvconf/downup-interfaces || :
db_go
set -e
. /usr/share/debconf/confmodule
db_input low resolvconf/linkify-resolvconf || :
db_go
db_get resolvconf/linkify-resolvconf
# No need to ask about creating a 'tail' file if we've already asked
# or if /etc/resolv.conf is already a symlink; this is only for initial
# install.
if [ "$RET" = true ] && db_fget resolvconf/link-tail-to-original seen \
&& [ "$RET" = false ] && ! [ -L /etc/resolv.conf ]
then
if ! grep -q nameserver /etc/resolv.conf 2>/dev/null \
|| grep -q '# Generated by NetworkManager' /etc/resolv.conf 2>/dev/null \
|| grep -Eq '^[[:space:]]*(iface[[:space:]]+.*[[:space:]]+inet6?[[:space:]]+dhcp|dns[-_]nameservers[[:space:]]+[0-9A-Fa-f.:[:space:]]+[[:space:]]*(#.*)?$)' /etc/network/interfaces 2>/dev/null
then
# Either the /etc/resolv.conf is empty, or we've found
# at least one indicator that it's dynamically managed
# in at least some circumstances (via ifupdown dhcp,
# ifupdown 'dns-nameserver' static rules, or NM). No point
# in importing the existing nameservers.
db_set resolvconf/link-tail-to-original false
fi
db_input low resolvconf/link-tail-to-original || :
fi
db_input medium resolvconf/downup-interfaces || :
db_go