Click here for original dd-wrt post Firmware: DD-WRT v24SP2-MULTI (12/17/10) std

These two methods of adding persistent routes were provided to a previous question (see link). In which directory, and in which file does either of these commands need to be placed? The top of the file, or the bottom of the file? Also, a separate post said that the & replaces the exit 0. Not sure if I follow that.

Version 1 sleep 40 sed -i '' -e 's|exit 0|route add -net xxx.xxx.0.0 netmask 255.255.0.0 dev ppp0\nroute add -net yyy.yyy.0.0 netmask 255.255.0.0 dev ppp0\n&\n|' /tmp/pptpd_client/ip-up /tmp/pptpd_client/ip-up

Version 2 sleep 40 sed -i '' -e 's|exit 0|route add -net xxx.xxx.0.0 netmask 255.255.0.0 dev ppp0\n&\n|' /tmp/pptpd_client/ip-up sed -i '' -e 's|exit 0|route add -net xxx.xxx.0.0 netmask 255.255.0.0 dev ppp0\n&\n|' /tmp/pptpd_client/ip-up sed -i '' -e 's|exit 0|route add -net xxx.xxx.0.0 netmask 255.255.0.0 dev ppp0\n&\n|' /tmp/pptpd_client/ip-up /tmp/pptpd_client/ip-up

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.