ALT Linux Bugzilla
– Attachment 3365 Details for
Bug 19152
need resolvconf support
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
use resolvconf
etcnet-resolvconf.diff (text/plain), 2.67 KB, created by
Sergey Bolshakov
on 2009-03-13 18:33:17 MSK
(
hide
)
Description:
use resolvconf
Filename:
MIME Type:
Creator:
Sergey Bolshakov
Created:
2009-03-13 18:33:17 MSK
Size:
2.67 KB
patch
obsolete
>diff --git a/etc/net/scripts/functions b/etc/net/scripts/functions >index a23522d..547289f 100644 >--- a/etc/net/scripts/functions >+++ b/etc/net/scripts/functions >@@ -27,6 +27,7 @@ DEFAULT_IFENSLAVE=/sbin/ifenslave > DEFAULT_TUNCTL=/usr/sbin/tunctl > DEFAULT_BRCTL=/usr/sbin/brctl > DEFAULT_ETHTOOL=/usr/sbin/ethtool >+DEFAULT_RESOLVCONFTOOL=/sbin/resolvconf > DEFAULT_PPPD=/usr/sbin/pppd > DEFAULT_CHAT=/usr/sbin/chat > DEFAULT_PPPOPTIONSFILE=pppoptions >@@ -559,7 +560,7 @@ declare -rx VLANTAB HOSTTAB IFTAB PROFILE_FILE PROC_CMDLINE DEFAULT_IFPLUGSTATUS > declare -rx DEFAULT_IFPLUGD DEFAULT_IWCONFIG DEFAULT_WLANCONFIG DEFAULT_WPA_SUPPLICANT DEFAULT_WPA_CLI DEFAULT_PLIPCONFIG > declare -rx DEFAULT_IWPRIV DEFAULT_VCONFIG DEFAULT_PENTANETT DEFAULT_PENTAVALT DEFAULT_PENTANET_CONF > declare -rx DEFAULT_PENTAVAL_CONF DEFAULT_IPSECADM DEFAULT_IFENSLAVE DEFAULT_BRCTL >-declare -rx DEFAULT_ETHTOOL DEFAULT_PPPD DEFAULT_CHAT DEFAULT_PPPOPTIONSFILE >+declare -rx DEFAULT_ETHTOOL DEFAULT_RESOLVCONFTOOL DEFAULT_PPPD DEFAULT_CHAT DEFAULT_PPPOPTIONSFILE > declare -rx DEFAULT_PPPINITCHAT DEFAULT_PPPCONNECTCHAT DEFAULT_PPPDISCONNECTCHAT > declare -rx DEFAULT_CHATOPTIONS DEFAULT_PPPOE DEFAULT_PPPOEOPTIONS DEFAULT_PPTP > declare -rx DEFAULT_SZAP DEFAULT_SZAP_ARGS DEFAULT_DVBNET DEFAULT_PAND >diff --git a/etc/net/scripts/ifup-common b/etc/net/scripts/ifup-common >index 5a897f7..3487e5a 100755 >--- a/etc/net/scripts/ifup-common >+++ b/etc/net/scripts/ifup-common >@@ -232,15 +232,6 @@ is_yes "$CONFIG_FW" && $SCRIPTDIR/config-fw $NAME start "${IPV4ADDRESS[*]}" "$ > is_yes "$CONFIG_QOS" && $SCRIPTDIR/config-qos $NAME start "${IPV4ADDRESS[*]}" "${IPV6ADDRESS[*]}" > > >-# handle resolver config >-MYRESOLVCONF=`profiled_filename $MYIFACEDIR/resolv.conf` >-if [ -s $MYRESOLVCONF ]; then >- rm -f /etc/resolv.conf >- cp $MYRESOLVCONF /etc/resolv.conf >- [ -x "$RESOLV_POSTIN_CMD" ] && $RESOLV_POSTIN_CMD $RESOLV_POSTIN_ARGS >- print_progress >-fi >- > # handle sysctl file > GLOBAL_SYSCTL=`profiled_filename $IFACEDIR/sysctl.conf` > TYPESPEC_SYSCTL=`profiled_filename $IFACEDIR/default/sysctl.conf-$TYPE` >@@ -254,6 +245,18 @@ ExecIfExecutable $SCRIPTDIR/setup-$TYPE $NAME && print_progress > > # ifup-post > iface_is_up $NAME && { >+# handle resolver config >+ MYRESOLVCONF=`profiled_filename $MYIFACEDIR/resolv.conf` >+ if [ -s $MYRESOLVCONF ]; then >+ if [ -x "${RESOLVCONFTOOL:=$DEFAULT_RESOLVCONFTOOL}" ]; then >+ $RESOLVCONFTOOL -a $NAME < $MYRESOLVCONF >+ else >+ rm -f /etc/resolv.conf >+ cp $MYRESOLVCONF /etc/resolv.conf >+ [ -x "$RESOLV_POSTIN_CMD" ] && $RESOLV_POSTIN_CMD $RESOLV_POSTIN_ARGS >+ fi >+ print_progress >+ fi > ExecIfExecutable $LOCALSCRIPTDIR/ifup-post-local $NAME && print_progress > ExecIfExecutable $MYIFACEDIR/ifup-post $NAME && print_progress > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19152
: 3365 |
3371