base-files: ignore initscript output in sysupgrade

Suppress output from `/etc/init.d/service enabled` to avoid corrupting
of the sysupgrade tarball.

Fixes: 0ad062a21b ("base-files: sysupgrade: add uci-defaults script disabling services #2")
Signed-off-by: Niall McGee <niall.mcgee@bt.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Niall McGee
2025-05-30 22:55:35 +01:00
committed by Daniel Golle
parent 515db1e069
commit 07dfb9b710

View File

@ -273,7 +273,7 @@ create_backup_archive() {
if [ $ret -eq 0 ]; then
for service in /etc/init.d/*; do
if ! $service enabled; then
if ! $service enabled >/dev/null 2>&1; then
disabled="$disabled$service disable\n"
fi
done