X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp2.git/blobdiff_plain/143eb03be4aba6e740b7eb06886494590ece7d23..94aa4539679949634e8f531dbd3c2c152e89e0a8:/makeroute?ds=sidebyside diff --git a/makeroute b/makeroute index fd7b223..65c533d 100755 --- a/makeroute +++ b/makeroute @@ -52,8 +52,12 @@ def up(host, fd): ppp = 0 for iface in hosts[host]['ifaces']: if iface['iface'].startswith('ppp'): - print 'UP: pppd -detach crtscts lock %(ip)s:%(peer)s /dev/ttyS0' % iface - os.system('pppd -detach crtscts lock %(ip)s:%(peer)s /dev/ttyS0 &' % iface) + if host == 'h131' or host == 'h118': + print 'UP: pppd -detach modem crtscts lock %(ip)s:%(peer)s /dev/ttyS0 9600' % iface + os.system('pppd -detach modem crtscts lock %(ip)s:%(peer)s /dev/ttyS0 9600 &' % iface) + else: + print 'UP: pppd -detach crtscts lock %(ip)s:%(peer)s /dev/ttyS0' % iface + os.system('pppd -detach crtscts lock %(ip)s:%(peer)s /dev/ttyS0 &' % iface) ppp = 1 else: print 'UP: ifconfig %(iface)s %(ip)s broadcast %(broadcast)s netmask %(mascara)s' % iface