wok-current rev 12173

ppp: fix modem dialup failing
author Dominique Corbex <domcox@slitaz.org>
date Fri Mar 23 23:07:23 2012 +0100 (2012-03-23)
parents a621445c6ebd
children 8c84f0c8afcb
files ppp/receipt
line diff
     1.1 --- a/ppp/receipt	Fri Mar 23 18:23:36 2012 +0100
     1.2 +++ b/ppp/receipt	Fri Mar 23 23:07:23 2012 +0100
     1.3 @@ -46,9 +46,11 @@
     1.4  	mkdir -p $fs/etc/ppp/scripts
     1.5  	cp $stuff/README.scripts $fs/etc/ppp
     1.6  	cp -a $src/etc.ppp/* $fs/etc/ppp
     1.7 +
     1.8  	# PPP scripts.
     1.9  	cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts
    1.10  	cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts
    1.11 +	sed -i 's:ppp/ppp-on-dialer:ppp/scripts/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on
    1.12  	
    1.13  	cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts
    1.14  	cp -a $src/scripts/callback $fs/etc/ppp/scripts
    1.15 @@ -57,10 +59,11 @@
    1.16  	cp -a $src/scripts/ip-up.local.add $fs/etc/ppp/ip-up
    1.17  	cp -a $src/scripts/ip-down.local.add $fs/etc/ppp/ip-down
    1.18  	chmod +x $fs/etc/ppp/ip*
    1.19 +
    1.20  	# insert #!/bin/sh  on top line in ip* scripts
    1.21  	sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip*	
    1.22  	# add empty peers dir
    1.23  	mkdir -p $fs/etc/ppp/peers
    1.24 -	sed -i 's:ppp/ppp-on-dialer:ppp/script/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on
    1.25 -	
    1.26 +	# hide data from regular users
    1.27 +	chmod -R go-rwx $fs/etc/ppp/*
    1.28  }