mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-08 16:50:42 +01:00
base-files: ignore initscript output in sysupgrade
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
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…
Add table
Reference in a new issue