I find a solution. Moderators can close thread:
Script /etc/ppp/auth-up work so fast, that ppp devices don't have time to start up.
This is corrected script:
#Script start
!#/bin/sh
if [ "$2" == "someusername" ]; then
echo $1 >> /var/test
sleep 10
route add -net 192.168.x.x/24 dev $1
fi
Thank u.
Hi! Nope, this work in debian
[email protected]:/etc/ppp# route add -net 192.168.120.0/24 dev ppp0
[email protected]:/etc/ppp# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.64.128.1 0.0.0.0 UG 0 0...
Hello everybody!
Sorry for not perfect English.
Need help, I try to execute this script in /etc/ppp/auth-up:
It this file, $1 is interface name like ppp0, ppp1 etc
$2 is peer name (defined in /ppp/chap-secrets)
#Script start
!#/bin/sh
if [ "$2" == "someusername" ]; then
echo...