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:
parent
515db1e069
commit
07dfb9b710
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue