# HG changeset patch # User Rohit Joshi # Date 1268762781 0 # Node ID 7e4cec027e34ec8d2a6ca43e1b9b4c6121a87b5f # Parent ca2e9a95d244ad98aabc3e4fef13bdb9871de8c3 ppp: improve sed to ppp-on diff -r ca2e9a95d244 -r 7e4cec027e34 ppp/receipt --- a/ppp/receipt Tue Mar 16 17:21:07 2010 +0000 +++ b/ppp/receipt Tue Mar 16 18:06:21 2010 +0000 @@ -35,7 +35,7 @@ # PPP scripts. cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts - sed -i 's,ppp/ppp-on-dialer,ppp/script/ppp-on-dialer,' $fs/etc/ppp/scripts/ppp-on-dialer + cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts cp -a $src/scripts/callback $fs/etc/ppp/scripts cp -a $src/scripts/redialer $fs/etc/ppp/scripts @@ -45,5 +45,8 @@ chmod +x $fs/etc/ppp/ip* # insert #!/bin/sh on top line in ip* scripts sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip* + # add empty peers dir + mkdir -p $fs/etc/ppp/peers + sed -i 's:ppp/ppp-on-dialer:ppp/script/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on }