mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-07 22:06:25 +08:00
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:

committed by
Daniel Golle

parent
515db1e069
commit
07dfb9b710
@ -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
|
||||
|
Reference in New Issue
Block a user