fibonaccios/bin/init.py

19 lines
451 B
Python
Raw Normal View History

2022-11-29 19:18:17 -08:00
import shlex
2022-11-29 19:32:41 -08:00
def get_app_class(template):
class App(template):
def F_main(self):
with open('/etc/init/start') as f:
lines = f.readlines()
for line in lines:
if line.strip():
2022-11-30 19:33:05 -08:00
last_pid = self.launch(*shlex.split(line))
2022-11-29 19:18:17 -08:00
2022-11-29 19:32:41 -08:00
self.transfer_console(last_pid)
self.next_function = 'loop'
2022-11-29 19:18:17 -08:00
2022-11-29 19:32:41 -08:00
def F_loop(self):
pass
return App