Files
OpenNetworkLinux/tools/onl-init-pkgs.py
Wataru Ishida 224fe6a7cf [wip] tools: python3
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2020-02-18 01:43:13 -08:00

19 lines
541 B
Python
Executable File

#!/usr/bin/python3
############################################################
#
# This script produces a YAML list on stdout of all
# packages necessary to support the given init system
#
import argparse
ap = argparse.ArgumentParser(description='ONL Init Package Lister')
ap.add_argument('init', metavar='INIT-SYSTEM', choices=['sysvinit', 'systemd'], help='Init system to use')
ops = ap.parse_args()
if ops.init == 'sysvinit':
print('- sysvinit-core')
elif ops.init == 'systemd':
print('- systemd')
print('- systemd-sysv')