wok-4.x rev 5104

ppp: improve sed to ppp-on
author Rohit Joshi <jozee@slitaz.org>
date Tue Mar 16 18:06:21 2010 +0000 (2010-03-16)
parents ca2e9a95d244
children 92fe53b748bb
files ppp/receipt
line diff
     1.1 --- a/ppp/receipt	Tue Mar 16 17:21:07 2010 +0000
     1.2 +++ b/ppp/receipt	Tue Mar 16 18:06:21 2010 +0000
     1.3 @@ -35,7 +35,7 @@
     1.4  	# PPP scripts.
     1.5  	cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts
     1.6  	cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts
     1.7 -	sed -i 's,ppp/ppp-on-dialer,ppp/script/ppp-on-dialer,' $fs/etc/ppp/scripts/ppp-on-dialer
     1.8 +	
     1.9  	cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts
    1.10  	cp -a $src/scripts/callback $fs/etc/ppp/scripts
    1.11  	cp -a $src/scripts/redialer $fs/etc/ppp/scripts
    1.12 @@ -45,5 +45,8 @@
    1.13  	chmod +x $fs/etc/ppp/ip*
    1.14  	# insert #!/bin/sh  on top line in ip* scripts
    1.15  	sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip*	
    1.16 +	# add empty peers dir
    1.17 +	mkdir -p $fs/etc/ppp/peers
    1.18 +	sed -i 's:ppp/ppp-on-dialer:ppp/script/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on
    1.19  	
    1.20  }