diff --git a/meson.build b/meson.build index 8fdd116..b884f59 100644 --- a/meson.build +++ b/meson.build @@ -23,3 +23,11 @@ executable('qbootctl', src, install: true, c_args: [], ) + +configure_file( + input: 'qbootctl.service.in', + output: 'qbootctl.service', + configuration: { 'bindir': get_option('prefix') / 'bin' }, + install: true, + install_dir: get_option('prefix') / 'lib' / 'systemd' / 'system', +) diff --git a/qbootctl.service.in b/qbootctl.service.in new file mode 100644 index 0000000..a1fc7fc --- /dev/null +++ b/qbootctl.service.in @@ -0,0 +1,11 @@ +[Unit] +Description=Qualcomm boot slot ctrl mark boot successful + +[Service] +ExecStart=@bindir@/qbootctl -m +Type=oneshot +RemainAfterExit=yes + +[Install] +# FIXME: maybe do this a bit later on +WantedBy=multi-user.target