23 lines
626 B
Plaintext
23 lines
626 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
#
|
||
|
# SPDX-FileCopyrightText: 2023 PeppemrintOS Team (peppermintosteam@proton.me)
|
||
|
|
||
|
# List of services to be enabled
|
||
|
services=("nftables" "cockpit" "ssh" "sshguard") # Add more services as needed
|
||
|
|
||
|
# Loop to enable each service
|
||
|
for service in "${services[@]}"; do
|
||
|
# Check if the service is already enabled
|
||
|
if update-rc.d "$service" defaults >/dev/null 2>&1; then
|
||
|
echo "Service $service is already enabled."
|
||
|
else
|
||
|
# Enable the service
|
||
|
update-rc.d "$service" defaults
|
||
|
echo "Service $service has been successfully enabled."
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
echo "Completed."
|