/etc/rc.local
if mount /dev/sr0 -t iso9660 /mnt
then
echo "Found Novatel u727"
sleep 3
umount /dev/sr0
eject /dev/sr0
fi
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -o ppp0 -j MASQUERADE
sleep 10
wvdial &
/etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Init = ATZ
ISDN = 0
Modem Type = USB Modem
Phone = #777
Username = ''
Password = ''
Carrier Check = no
Stupid Mode = yes
Obviously need to clean up the iptables rules, although I'm not terribly worried about it.
No comments:
Post a Comment