fallout-term/fallout.py

21 lines
501 B
Python
Raw Normal View History

2015-05-26 21:37:25 +00:00
#! /usr/bin/env python
import fallout_login as login
2015-05-27 01:11:31 +00:00
import fallout_boot as boot
import fallout_locked as locked
import fallout_hack as hack
2015-06-14 22:31:01 +00:00
import fallout_selection as select
import sys
2015-05-26 21:37:25 +00:00
hard = False
if len(sys.argv) == 2 and sys.argv[1].lower() == 'hard':
hard = True
if boot.beginBoot(hard):
pwd = hack.beginLogin()
if pwd != None:
login.beginLogin(hard, 'ADMIN', pwd)
print(select.beginSelection())
2015-05-27 01:11:31 +00:00
else:
locked.beginLocked()
print('Login failed')