![]() |
Sup all
This is my first shell script, I'm fairly lost. It does what I want it to.. drops eth0, dials, starts my firewall script, saves to iptables and checks ifconfig. Though I have to listen for the dialing to finish, then press ENTER. But so far that's the only way I know how to do it. I'd rather have it verify that ppp0 is up then execute the rest, but that's beyond me yet. Here it is: :
#!/bin/sh |
sorry i cant help you out, im not very strong on my shell scripting sorry. maybe someone else will beable to help. or if you figure it out let us know what you had to do to fix it :)
|
try adding an if....fi statement to it that includes the following:
:
ifconfig|grep ppp0 |
You could also try using a sleep command to wait for a specific interval to
allow the process to finish. IR |
| All times are GMT -5. The time now is 4:22 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC