Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/common.global.class.in

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

revision 2816 by niro, Fri Apr 7 07:17:48 2017 UTC revision 2817 by niro, Wed Apr 12 13:21:50 2017 UTC
# Line 260  system_chroot() Line 260  system_chroot()
260  iface_for_remote_addr()  iface_for_remote_addr()
261  {  {
262   set -- $(ip -o route get to $1)   set -- $(ip -o route get to $1)
263   echo $5   # honor routes with and without a gateway
264     case $@ in
265     *via*) echo $5 ;;
266     *) echo $3 ;;
267     esac
268  }  }
269    
270  validate_ip_addr()  validate_ip_addr()

Legend:
Removed from v.2816  
changed lines
  Added in v.2817