You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2019. It is now read-only.
fromyarfi.ServicesAndTargetsimportTargetasTrgclassTarget(Trg):
def__init__(self):
self.description="Single User Mode"self.depends= ["single"]
self.conflicts= [] #nothing
This should be pretty self-explanatory.
The files are placed in /etc/yarfi/targets/ and are named [name of the target].py.
The default target is called default.py. If you want to change that, you may either change the symlink or append yarfi-target=[target] to your kernel's command-line.
Oh, one thing: these files aren't parsed. They are imported as modules.
And, currently, there is no exception handling. Which means: if there's a syntax error in any configuration file, yarfi will crash.