Changeset 3168 in MondoRescue for branches/3.0/mindi/rootfs/sbin/start-netfs
- Timestamp:
- Jul 26, 2013, 8:50:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/rootfs/sbin/start-netfs
r3111 r3168 18 18 ipgateway=`grep netfs-client-defgw /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 19 19 proto=`grep netfs-proto /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 20 iptoute=`grep netfs-route /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 20 21 ipconf="" 21 22 pre="" … … 43 44 echo $i | grep -qi post= && post=`echo $i | cut -d= -f2` 44 45 echo $i | grep -qi proto= && proto=`echo $i | cut -d= -f2` 46 echo $i | grep -qi iproute= && iproute=`echo $i | cut -d= -f2` 45 47 done 46 48 … … 85 87 fi 86 88 87 # Leave time to the s atck to wake up (reported by some users)89 # Leave time to the stack to wake up (reported by some users) 88 90 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 89 98 90 99 # ping server helps waking interface up
Note:
See TracChangeset
for help on using the changeset viewer.