View previous topic :: View next topic |
Author |
Message |
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Fri Feb 21, 2003 2:59 pm Post subject: Cannot start traffic shaping script from /etc/ppp/ip-up |
|
|
After connectiing to the internet (rp-pppoe), I automagically start a firewall script, a dyndns update and a traffic shaping script, using /etc/ppp/ip-up.
The firewall en dyndns-script work nicely, therefore ip-up in itself is OK.
The traffic shaping script is certainly started from ip-up (I inserted a 'play wav-file' as last line into the script as a checkpoint), but it does not function: tc -s -d class ls dev ppp0 returns nothing.
When I run the script from the command prompt after the ppp connection is up, as works beautifully, and tc -s -d class ls dev ppp0 gives the desired output.
What's going on here |
|
Back to top |
|
|
sieter Tux's lil' helper
Joined: 03 Jan 2003 Posts: 111
|
Posted: Fri Feb 21, 2003 10:10 pm Post subject: |
|
|
maybe that´s too easy, but is it possible that $PATH is not set
within your script?
maybe that helps:
#!/bin/bash
#Example config for an adsl link with 1024Kbit downstream and 128Kbit upstream
export PATH=/sbin:/usr/sbin
---zip------ |
|
Back to top |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Fri Feb 21, 2003 10:23 pm Post subject: |
|
|
Thanks for the suggestion, but the path is fine.
Also all modules are loaded correctly.
And still it's not loading from /etc/ppp/ip-up.
Help ! |
|
Back to top |
|
|
|