armbian_build/lib/functions/rootfs/systemd-utils.sh
Igor Pečovnik b7b8eb7b72
Add / modify (c) in bash scripts (#4922)
* Add / modify (c) in bash scripts

Signed-off-by: Igor <igor@armbian.com>

* Add (c) to the source config files

---------

Signed-off-by: Igor <igor@armbian.com>
2023-03-09 18:30:40 +01:00

17 lines
445 B
Bash

#!/usr/bin/env bash
#
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
#
# This file is a part of the Armbian Build Framework
# https://github.com/armbian/build/
function disable_systemd_service_sdcard() {
display_alert "Disabling systemd service(s) on target" "${*}" "debug"
declare service
for service in "${@}"; do
chroot_sdcard systemctl --no-reload disable "${service}" "||" true
done
}