/[baselayout]/branches/rc-scripts-1_6/net-scripts/net.modules.d/helpers.d/udhcpc-ifconfig
Gentoo

Diff of /branches/rc-scripts-1_6/net-scripts/net.modules.d/helpers.d/udhcpc-ifconfig

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 756 Revision 757
39broadcast=${broadcast// } 39broadcast=${broadcast// }
40[[ -n ${broadcast} ]] && broadcast="broadcast ${broadcast}" 40[[ -n ${broadcast} ]] && broadcast="broadcast ${broadcast}"
41 41
42# If the current address does not match or we are deconfiguring 42# If the current address does not match or we are deconfiguring
43# then we take the all the addresses on the interface down 43# then we take the all the addresses on the interface down
44cur=$( ifconfig eth1 | grep 'inet ' | awk -F: '{ print $2,$3 }' | awk '{ print $1,$3 }' ) 44cur=$( ifconfig ${interface} | grep 'inet ' | awk -F: '{ print $2,$3 }' | awk '{ print $1,$3 }' )
45if [[ ${cur} != "${ip} ${subnet}" || ${action} == deconfig ]]; then 45if [[ ${cur} != "${ip} ${subnet}" || ${action} == deconfig ]]; then
46 # Remove all aliases 46 # Remove all aliases
47 for i in $( ifconfig | grep -o "^${interface}:[0-9]*" | tac | xargs ); do 47 for i in $( ifconfig | grep -o "^${interface}:[0-9]*" | tac | xargs ); do
48 ifconfig ${i} down 48 ifconfig ${i} down
49 done 49 done

Legend:
Removed from v.756  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.20