[Comm] ADSL в ALD4.1
Владимир Головин
=?iso-8859-1?q?tarnoga_=CE=C1_gmail=2Ecom?=
Ср Ноя 12 19:26:04 MSK 2008
12 ноября 2008 г. 17:26 пользователь Kharitonov A. Dmitry
<kharpost на rambler.ru> написал:
> Трассируем дальше
> # echo '#!/bin/bash' | cat - /etc/net/scripts/ifup-common > /tmp/1 # cat
> /tmp/1 > /etc/net/scripts/ifup-common
>
> # echo '#!/bin/bash -x' | cat - /etc/net/scripts/config-ipv4 > /tmp/1 # cat
> /tmp/1 > /etc/net/scripts/config-ipv4
>
> # ifdown eth0
> # ifup eth0
[root на localhost ~]# echo '#!/bin/bash' | cat -
/etc/net/scripts/ifup-common > /tmp/1
[root на localhost ~]# cat /tmp/1 > /etc/net/scripts/ifup-common
[root на localhost ~]# echo '#!/bin/bash -x' | cat -
/etc/net/scripts/config-ipv4 > /tmp/1
[root на localhost ~]# cat /tmp/1 > /etc/ne/scripts/config-ipv4
[root на localhost ~]# ifdown eth0
+ '[' 4 -ge 2 ']'
+ NAME=eth0
+ ACTION=stop
+ eval 'IPV4ADDRESS=()'
++ IPV4ADDRESS=()
+ eval 'IPV6ADDRESS=()'
++ IPV6ADDRESS=()
+ pickup_defaults
+ local of
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options = /etc/net/options -a /etc/net/options =
/etc/net/options ']'
+ SourceIfNotEmpty /etc/net/options
+ local f
+ f=/etc/net/options
+ shift
+ '[' -s /etc/net/options ']'
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/00-default = /etc/net/options.d/00-default -a
/etc/net/options.d/00-default = /etc/net/options.d/00-default ']'
+ SourceIfNotEmpty /etc/net/options.d/00-default
+ local f
+ f=/etc/net/options.d/00-default
+ shift
+ '[' -s /etc/net/options.d/00-default ']'
+ . /etc/net/options.d/00-default
++ SILENT_REMOVABLES=off
++ VLAN_NAMETYPE=DEV_PLUS_VID_NO_PAD
++ IP=/sbin/ip
++ TC=/sbin/tc
++ OVPN=/usr/sbin/openvpn
++ MODPROBE=/sbin/modprobe
++ LSMOD=/sbin/lsmod
++ INSMOD=/sbin/insmod
++ RMMOD=/sbin/rmmod
++ SYSCTL=/sbin/sysctl
++ IFRENAME=/sbin/ifrename
++ TUNCTL=/usr/sbin/tunctl
++ ZCIP_CLIENT=/usr/sbin/avahi-autoipd
++ IPX_INTERFACE=/sbin/ipx_interface
++ IPX_INTERNAL_NET=/sbin/ipx_internal_net
++ IPX_CONFIGURE=/sbin/ipx_configure
++ ALLOW_UNKNOWN=no
++ IPTABLES=/sbin/iptables
++ IP6TABLES=/sbin/ip6tables
++ EBTABLES=/sbin/ebtables
++ GOOD_MODULE_LIST='eepro100 e100 8139too tulip 3c59x hostap
via-rhine sk98lin r8169'
++ NEVER_RMMOD=yes
++ AUTO_BROADCAST=off
++ IFGROUP[0]='lo dummy'
++ IFGROUP[1]='eth plip usb dvb bnep tuntap'
++ IFGROUP[2]='vlan bond bri teql'
++ IFGROUP[3]='iptun ipsectun ovpn ossh'
++ IFGROUP[4]=ppp
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop -a
/etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop ']'
+ SourceIfNotEmpty /etc/net/options.d/50-ALTLinux-desktop
+ local f
+ f=/etc/net/options.d/50-ALTLinux-desktop
+ shift
+ '[' -s /etc/net/options.d/50-ALTLinux-desktop ']'
+ . /etc/net/options.d/50-ALTLinux-desktop
++ RESOLV_POSTIN_CMD=/sbin/update_chrooted
++ RESOLV_POSTIN_ARGS=conf
++ ALLOW_UNKNOWN=on
++ SILENT_REMOVABLES=yes
++ DHCP_CLIENT=/sbin/dhcpcd
++ DHCP_TIMEOUT=30
++ DHCP_GRACE_TIME=2
++ DHCP_HOSTNAME=localhost
++ BRCTL=/sbin/brctl
+ '[' -z /etc/net/scripts ']'
+ pickup_options
+ local of prof_of
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ is_yes no
+ case "$1" in
+ return 1
+ '[' -z eth ']'
+ '[' -z eth ']'
+ supported_type eth
+ local TYPE=eth
+ '[' -x /etc/net/scripts/create-eth -o -x /etc/net/scripts/destroy-eth ']'
+ return 0
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename /etc/net/ifaces/default/options
++ local CAND BASE=/etc/net/ifaces/default/options
++ CAND=/etc/net/ifaces/default/options
++ '[' -e /etc/net/ifaces/default/options ']'
++ echo /etc/net/ifaces/default/options
++ return 0
+ prof_of=/etc/net/ifaces/default/options
+ '[' -f /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options
+ local f
+ f=/etc/net/ifaces/default/options
+ shift
+ '[' -s /etc/net/ifaces/default/options ']'
+ . /etc/net/ifaces/default/options
++ DISABLED=no
++ BOOTPROTO=dhcp
++ ONBOOT=yes
++ USE_HOTPLUG=no
++ USE_PCMCIA=no
++ CONFIG_IPV4=yes
++ CONFIG_IPV6=no
++ CONFIG_IPX=no
++ CONFIG_QOS=yes
++ CONFIG_WIRELESS=no
++ CONFIG_FW=no
++ KEEP_DOWN=no
++ DONT_FLUSH=no
++ IFUP_CHILDREN=no
++ IFUP_PARENTS=yes
++ IFDOWN_CHILDREN=yes
++ IFDOWN_PARENTS=no
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename '/etc/net/ifaces/default/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options.d/*'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ echo '/etc/net/ifaces/default/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options.d/*'
+ '[' -f '/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' ']'
+ continue
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename /etc/net/ifaces/default/options-eth
++ local CAND BASE=/etc/net/ifaces/default/options-eth
++ CAND=/etc/net/ifaces/default/options-eth
++ '[' -e /etc/net/ifaces/default/options-eth ']'
++ echo /etc/net/ifaces/default/options-eth
++ return 0
+ prof_of=/etc/net/ifaces/default/options-eth
+ '[' -f /etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options-eth
+ local f
+ f=/etc/net/ifaces/default/options-eth
+ shift
+ '[' -s /etc/net/ifaces/default/options-eth ']'
+ . /etc/net/ifaces/default/options-eth
++ USE_IFPLUGD=no
++ PERSISTENT_IFPLUGD=no
++ IFPLUGD_EXTRA_ARGS='--delay-up=0 --delay-down=10'
++ LINKDETECT=auto
++ LINKDELAY=5
++ CONFIG_WIRELESS=yes
++ AUTO_BROADCAST=yes
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename '/etc/net/ifaces/default/options-eth.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options-eth.d/*'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ echo '/etc/net/ifaces/default/options-eth.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options-eth.d/*'
+ '[' -f '/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' ']'
+ continue
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ SourceIfNotEmpty /etc/net/scripts/functions-eth
+ local f
+ f=/etc/net/scripts/functions-eth
+ shift
+ '[' -s /etc/net/scripts/functions-eth ']'
+ . /etc/net/scripts/functions-eth
+ case $ACTION in
+ . /etc/net/scripts/functions-ipv4
+ config_ipv4_routes_rules del
+ local OP=del
++ profiled_filename /etc/net/ifaces/eth0/ipv4route
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4route
++ CAND=/etc/net/ifaces/eth0/ipv4route
++ '[' -e /etc/net/ifaces/eth0/ipv4route ']'
++ echo /etc/net/ifaces/eth0/ipv4route
++ return 0
+ local SRCFILE=/etc/net/ifaces/eth0/ipv4route
+ local SUFFIX
+ IPV4ADDRESS=($(get_ipv4_addresses $NAME))
++ get_ipv4_addresses eth0
++ local NAME=eth0
+++ /sbin/ip -4 addr show dev eth0
+++ grep -ose '\binet[[:space:]]\+[0-9.]\+'
+++ cut -f2 '-d '
++ printf ''
+ '[' del = del ']'
+ REVERSE='|tac'
+ '[' -s /etc/net/ifaces/eth0/ipv4route ']'
+ eval 'egrep ^[^#] "/etc/net/ifaces/eth0/ipv4route" |tac'
++ egrep '^[^#]' /etc/net/ifaces/eth0/ipv4route
++ tac
+ read FIRST REST
+ process_ipv4rules del
+ local OP=del
+ local REVERSE
+ '[' del = del ']'
+ REVERSE='|tac'
++ profiled_filename /etc/net/ifaces/eth0/ipv4rule
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4rule
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ echo /etc/net/ifaces/eth0/ipv4rule
++ return 0
+ SRCFILE=/etc/net/ifaces/eth0/ipv4rule
+ '[' -s /etc/net/ifaces/eth0/ipv4rule ']'
+ is_yes no
+ case "$1" in
+ return 1
+ /sbin/ip -4 address flush dev eth0
[root на localhost ~]# ifup eth0
+ '[' 4 -ge 2 ']'
+ NAME=eth0
+ ACTION=start
+ eval 'IPV4ADDRESS=()'
++ IPV4ADDRESS=()
+ eval 'IPV6ADDRESS=()'
++ IPV6ADDRESS=()
+ pickup_defaults
+ local of
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options = /etc/net/options -a /etc/net/options =
/etc/net/options ']'
+ SourceIfNotEmpty /etc/net/options
+ local f
+ f=/etc/net/options
+ shift
+ '[' -s /etc/net/options ']'
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/00-default = /etc/net/options.d/00-default -a
/etc/net/options.d/00-default = /etc/net/options.d/00-default ']'
+ SourceIfNotEmpty /etc/net/options.d/00-default
+ local f
+ f=/etc/net/options.d/00-default
+ shift
+ '[' -s /etc/net/options.d/00-default ']'
+ . /etc/net/options.d/00-default
++ SILENT_REMOVABLES=off
++ VLAN_NAMETYPE=DEV_PLUS_VID_NO_PAD
++ IP=/sbin/ip
++ TC=/sbin/tc
++ OVPN=/usr/sbin/openvpn
++ MODPROBE=/sbin/modprobe
++ LSMOD=/sbin/lsmod
++ INSMOD=/sbin/insmod
++ RMMOD=/sbin/rmmod
++ SYSCTL=/sbin/sysctl
++ IFRENAME=/sbin/ifrename
++ TUNCTL=/usr/sbin/tunctl
++ ZCIP_CLIENT=/usr/sbin/avahi-autoipd
++ IPX_INTERFACE=/sbin/ipx_interface
++ IPX_INTERNAL_NET=/sbin/ipx_internal_net
++ IPX_CONFIGURE=/sbin/ipx_configure
++ ALLOW_UNKNOWN=no
++ IPTABLES=/sbin/iptables
++ IP6TABLES=/sbin/ip6tables
++ EBTABLES=/sbin/ebtables
++ GOOD_MODULE_LIST='eepro100 e100 8139too tulip 3c59x hostap
via-rhine sk98lin r8169'
++ NEVER_RMMOD=yes
++ AUTO_BROADCAST=off
++ IFGROUP[0]='lo dummy'
++ IFGROUP[1]='eth plip usb dvb bnep tuntap'
++ IFGROUP[2]='vlan bond bri teql'
++ IFGROUP[3]='iptun ipsectun ovpn ossh'
++ IFGROUP[4]=ppp
+ for of in /etc/net/options '/etc/net/options.d/*'
+ '[' /etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop -a
/etc/net/options.d/50-ALTLinux-desktop =
/etc/net/options.d/50-ALTLinux-desktop ']'
+ SourceIfNotEmpty /etc/net/options.d/50-ALTLinux-desktop
+ local f
+ f=/etc/net/options.d/50-ALTLinux-desktop
+ shift
+ '[' -s /etc/net/options.d/50-ALTLinux-desktop ']'
+ . /etc/net/options.d/50-ALTLinux-desktop
++ RESOLV_POSTIN_CMD=/sbin/update_chrooted
++ RESOLV_POSTIN_ARGS=conf
++ ALLOW_UNKNOWN=on
++ SILENT_REMOVABLES=yes
++ DHCP_CLIENT=/sbin/dhcpcd
++ DHCP_TIMEOUT=30
++ DHCP_GRACE_TIME=2
++ DHCP_HOSTNAME=localhost
++ BRCTL=/sbin/brctl
+ '[' -z /etc/net/scripts ']'
+ pickup_options
+ local of prof_of
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ is_yes no
+ case "$1" in
+ return 1
+ '[' -z eth ']'
+ '[' -z eth ']'
+ supported_type eth
+ local TYPE=eth
+ '[' -x /etc/net/scripts/create-eth -o -x /etc/net/scripts/destroy-eth ']'
+ return 0
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename /etc/net/ifaces/default/options
++ local CAND BASE=/etc/net/ifaces/default/options
++ CAND=/etc/net/ifaces/default/options
++ '[' -e /etc/net/ifaces/default/options ']'
++ echo /etc/net/ifaces/default/options
++ return 0
+ prof_of=/etc/net/ifaces/default/options
+ '[' -f /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options -a
/etc/net/ifaces/default/options = /etc/net/ifaces/default/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options
+ local f
+ f=/etc/net/ifaces/default/options
+ shift
+ '[' -s /etc/net/ifaces/default/options ']'
+ . /etc/net/ifaces/default/options
++ DISABLED=no
++ BOOTPROTO=dhcp
++ ONBOOT=yes
++ USE_HOTPLUG=no
++ USE_PCMCIA=no
++ CONFIG_IPV4=yes
++ CONFIG_IPV6=no
++ CONFIG_IPX=no
++ CONFIG_QOS=yes
++ CONFIG_WIRELESS=no
++ CONFIG_FW=no
++ KEEP_DOWN=no
++ DONT_FLUSH=no
++ IFUP_CHILDREN=no
++ IFUP_PARENTS=yes
++ IFDOWN_CHILDREN=yes
++ IFDOWN_PARENTS=no
+ for of in '$IFACEDIR/default/options' '$IFACEDIR/default/options.d/*'
++ profiled_filename '/etc/net/ifaces/default/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options.d/*'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ CAND='/etc/net/ifaces/default/options.d/*'
++ '[' -e '/etc/net/ifaces/default/options.d/*' ']'
++ echo '/etc/net/ifaces/default/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options.d/*'
+ '[' -f '/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' -a
'/etc/net/ifaces/default/options.d/*' =
'/etc/net/ifaces/default/options.d/*' ']'
+ continue
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename /etc/net/ifaces/default/options-eth
++ local CAND BASE=/etc/net/ifaces/default/options-eth
++ CAND=/etc/net/ifaces/default/options-eth
++ '[' -e /etc/net/ifaces/default/options-eth ']'
++ echo /etc/net/ifaces/default/options-eth
++ return 0
+ prof_of=/etc/net/ifaces/default/options-eth
+ '[' -f /etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth -a
/etc/net/ifaces/default/options-eth =
/etc/net/ifaces/default/options-eth ']'
+ SourceIfNotEmpty /etc/net/ifaces/default/options-eth
+ local f
+ f=/etc/net/ifaces/default/options-eth
+ shift
+ '[' -s /etc/net/ifaces/default/options-eth ']'
+ . /etc/net/ifaces/default/options-eth
++ USE_IFPLUGD=no
++ PERSISTENT_IFPLUGD=no
++ IFPLUGD_EXTRA_ARGS='--delay-up=0 --delay-down=10'
++ LINKDETECT=auto
++ LINKDELAY=5
++ CONFIG_WIRELESS=yes
++ AUTO_BROADCAST=yes
+ for of in '$IFACEDIR/default/options-$TYPE'
'$IFACEDIR/default/options-$TYPE.d/*'
++ profiled_filename '/etc/net/ifaces/default/options-eth.d/*'
++ local CAND 'BASE=/etc/net/ifaces/default/options-eth.d/*'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ CAND='/etc/net/ifaces/default/options-eth.d/*'
++ '[' -e '/etc/net/ifaces/default/options-eth.d/*' ']'
++ echo '/etc/net/ifaces/default/options-eth.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/default/options-eth.d/*'
+ '[' -f '/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' -a
'/etc/net/ifaces/default/options-eth.d/*' =
'/etc/net/ifaces/default/options-eth.d/*' ']'
+ continue
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename /etc/net/ifaces/eth0/options
++ local CAND BASE=/etc/net/ifaces/eth0/options
++ CAND=/etc/net/ifaces/eth0/options
++ '[' -e /etc/net/ifaces/eth0/options ']'
++ echo /etc/net/ifaces/eth0/options
++ return 0
+ prof_of=/etc/net/ifaces/eth0/options
+ '[' -f /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options
= /etc/net/ifaces/eth0/options -a /etc/net/ifaces/eth0/options =
/etc/net/ifaces/eth0/options ']'
+ SourceIfNotEmpty /etc/net/ifaces/eth0/options
+ local f
+ f=/etc/net/ifaces/eth0/options
+ shift
+ '[' -s /etc/net/ifaces/eth0/options ']'
+ . /etc/net/ifaces/eth0/options
++ TYPE=eth
++ DISABLED=no
++ BOOTPROTO=dhcp
++ NM_CONTROLLED=no
++ MODULE=8139too
+ for of in '$MYIFACEDIR/options' '$MYIFACEDIR/options.d/*'
++ profiled_filename '/etc/net/ifaces/eth0/options.d/*'
++ local CAND 'BASE=/etc/net/ifaces/eth0/options.d/*'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ CAND='/etc/net/ifaces/eth0/options.d/*'
++ '[' -e '/etc/net/ifaces/eth0/options.d/*' ']'
++ echo '/etc/net/ifaces/eth0/options.d/*'
++ return 0
+ prof_of='/etc/net/ifaces/eth0/options.d/*'
+ '[' -f '/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' -a
'/etc/net/ifaces/eth0/options.d/*' =
'/etc/net/ifaces/eth0/options.d/*' ']'
+ continue
+ SourceIfNotEmpty /etc/net/scripts/functions-eth
+ local f
+ f=/etc/net/scripts/functions-eth
+ shift
+ '[' -s /etc/net/scripts/functions-eth ']'
+ . /etc/net/scripts/functions-eth
+ case $ACTION in
+ . /etc/net/scripts/functions-ipv4
+ is_yes no
+ case "$1" in
+ return 1
+ /sbin/ip -4 address flush dev eth0
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
+ iface_is_up eth0
+ local NAME=eth0
+ /sbin/ip -o link show dev eth0
+ cut '-d ' -f3
+ grep -qs '[<,]UP[,>]'
+ case "$BOOTPROTO" in
+ try_dhcp
+ '[' -x /sbin/dhcpcd ']'
+ need_detection
+ '[' eth = eth ']'
+ case "${1:-$LINKDETECT}" in
+ '[' -x /usr/sbin/ifplugstatus ']'
+ local driver pick
+ '[' -n 8139too ']'
+ driver=8139too
+ for pick in '$GOOD_MODULE_LIST'
+ '[' eepro100 = 8139too ']'
+ for pick in '$GOOD_MODULE_LIST'
+ '[' e100 = 8139too ']'
+ for pick in '$GOOD_MODULE_LIST'
+ '[' 8139too = 8139too ']'
+ return 0
+ check_eth_link eth0
+ local TARGET=eth0
+ local LMAX=5
+ '[' 5 -ge 0 -a 5 -le 300 ']'
+ '[' -x /usr/sbin/ifplugstatus ']'
+ local i=0 result
+ true
+ /usr/sbin/ifplugstatus -q eth0
+ result=2
+ '[' 2 = 2 ']'
+ return 0
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
++ dhcp_cmdline
++ local H T
++ case `basename $DHCP_CLIENT` in
+++ basename /sbin/dhcpcd
++ '[' -n localhost ']'
++ case "$DHCP_HOSTNAME" in
++ '[' -n localhost.localdomain -a localhost.localdomain '!='
localhost -a localhost.localdomain '!=' localhost.localdomain ']'
++ T='-t 30'
++ echo ' -d -t 30 eth0'
+ DHCP_CMDLINE=' -d -t 30 eth0'
+ /sbin/dhcpcd -d -t 30 eth0
Error, eth0: netlink: No such process
+ local RET=0
+ '[' 0 '!=' 0 ']'
+ print_progress
+ is_yes ''
+ case "$1" in
+ return 1
+ return 0
+ return 0
+ config_ipv4_routes_rules add
+ local OP=add
++ profiled_filename /etc/net/ifaces/eth0/ipv4route
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4route
++ CAND=/etc/net/ifaces/eth0/ipv4route
++ '[' -e /etc/net/ifaces/eth0/ipv4route ']'
++ echo /etc/net/ifaces/eth0/ipv4route
++ return 0
+ local SRCFILE=/etc/net/ifaces/eth0/ipv4route
+ local SUFFIX
+ IPV4ADDRESS=($(get_ipv4_addresses $NAME))
++ get_ipv4_addresses eth0
++ local NAME=eth0
+++ /sbin/ip -4 addr show dev eth0
+++ grep -ose '\binet[[:space:]]\+[0-9.]\+'
+++ cut -f2 '-d '
++ printf 92.101.166.100
+ '[' add = del ']'
+ '[' -s /etc/net/ifaces/eth0/ipv4route ']'
+ eval 'egrep ^[^#] "/etc/net/ifaces/eth0/ipv4route" '
++ egrep '^[^#]' /etc/net/ifaces/eth0/ipv4route
+ read FIRST REST
+ process_ipv4rules add
+ local OP=add
+ local REVERSE
+ '[' add = del ']'
++ profiled_filename /etc/net/ifaces/eth0/ipv4rule
++ local CAND BASE=/etc/net/ifaces/eth0/ipv4rule
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ CAND=/etc/net/ifaces/eth0/ipv4rule
++ '[' -e /etc/net/ifaces/eth0/ipv4rule ']'
++ echo /etc/net/ifaces/eth0/ipv4rule
++ return 0
+ SRCFILE=/etc/net/ifaces/eth0/ipv4rule
+ '[' -s /etc/net/ifaces/eth0/ipv4rule ']'
--
Владимир Головин
tarnoga на gmail.com
Подробная информация о списке рассылки community