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
#zdawgs script to stop/start eth0 and dialout
IFCONFIG=/usr/sbin/ifconfig
ifconfig eth0 down && pon
echo; echo "Down eth0... dialing..."
echo "Press ENTER when dial ready."
read ready
ifconfig eth0 up && zwall && iptables-save && ifconfig
exit 0