for name in names:
if name in self.conns:
if self.conns[name]._running:
- call(('poff', name))
if path.exists('/var/run/ppp-' + name + '.pid'):
pid = file('/var/run/ppp-' + name + '.pid').readline()
try:
if __name__ == '__main__':
+
p = PppHandler()
p.conn.add('ppp_c','nico','nico',type='PPP',device='tty0')
p.conn.add('pppoe_c','fede','fede',type='OE',device='tty1')