Ignore:
Timestamp:
Jul 26, 2013, 8:50:01 AM (6 years ago)
Author:
bruno
Message:
  • Fix #697 by adding the iproute parameter at boot time to support addition of static routes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/rootfs/sbin/start-netfs

    r3111 r3168  
    1818ipgateway=`grep netfs-client-defgw /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-`
    1919proto=`grep netfs-proto /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-`
     20iptoute=`grep netfs-route /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-`
    2021ipconf=""
    2122pre=""
     
    4344    echo $i | grep -qi post= && post=`echo $i | cut -d= -f2`
    4445    echo $i | grep -qi proto= && proto=`echo $i | cut -d= -f2`
     46    echo $i | grep -qi iproute= && iproute=`echo $i | cut -d= -f2`
    4547done
    4648
     
    8587    fi
    8688
    87     # Leave time to the satck to wake up (reported by some users)
     89    # Leave time to the stack to wake up (reported by some users)
    8890    sleep 5
     91
     92    # Handle a potential static route
     93    if [ _"$iproute" != _"" ]; then
     94        iproute=`echo $iproute | perl -pi -e 's|:| |g'`
     95        LogIt "Adding static route with route add $iproute"
     96        route add $iproute
     97    fi
    8998
    9099    # ping server helps waking interface up
Note: See TracChangeset for help on using the changeset viewer.