17 lines
387 B
Python
17 lines
387 B
Python
|
import circuitos
|
||
|
import shlex
|
||
|
|
||
|
class App(circuitos.App):
|
||
|
def F_main(self):
|
||
|
with open('/etc/init/start') as f:
|
||
|
lines = f.readlines()
|
||
|
for line in lines:
|
||
|
if line.strip():
|
||
|
last_pid = self.os.launch(*shlex.split(line))
|
||
|
|
||
|
self.transfer_console(last_pid)
|
||
|
self.next_function = 'loop'
|
||
|
|
||
|
def F_loop(self):
|
||
|
pass
|