Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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, Directory : /etc/network/if-up.d/ |
Upload File : |
#!/bin/sh # # ifup hook script for resolvconf # # This file is part of the resolvconf package. # [ -x /sbin/resolvconf ] || exit 0 case "$ADDRFAM" in inet|inet6) : ;; *) exit 0 ;; esac R="" if [ "$IF_DNS_DOMAIN" ] ; then R="${R}domain $IF_DNS_DOMAIN " fi if [ "$IF_DNS_SEARCH" ] ; then R="${R}search $IF_DNS_SEARCH " fi if [ "$IF_DNS_SORTLIST" ] ; then R="${R}sortlist $IF_DNS_SORTLIST " fi for NS in $IF_DNS_NAMESERVERS ; do R="${R}nameserver $NS " done # Note: arguments of multiple instances of options are separated by newlines set_NS_to_first_arg() { NS="$1" ; } STANDARD_IFS="$IFS" IFS=' ' for OPT in $IF_DNS_NAMESERVER ; do IFS="$STANDARD_IFS" set_NS_to_first_arg $OPT [ "$NS" ] && R="${R}nameserver $NS " done IFS="$STANDARD_IFS" echo -n "$R" | /sbin/resolvconf -a "${IFACE}.${ADDRFAM}" || :