Skip to content

Commit

Permalink
base-files: add syslog logging for v function
Browse files Browse the repository at this point in the history
The logging output should not only be displayed in the calling shell
session but also in the syslog. A sysupgrade and a configuration
import, export can thus be traced in the syslog.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
  • Loading branch information
feckert authored and aparcar committed Jun 21, 2021
1 parent d374e2c commit bb2b715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package/base-files/files/lib/upgrade/common.sh
Expand Up @@ -71,6 +71,7 @@ _vn() {

v() {
_v "$(date) upgrade: $@"
logger -p info -t upgrade "$@"
}

vn() {
Expand Down
2 changes: 1 addition & 1 deletion package/base-files/files/lib/upgrade/stage2
Expand Up @@ -45,7 +45,7 @@ switch_to_ramfs() {
mtd partx losetup mkfs.ext4 nandwrite flash_erase \
ubiupdatevol ubiattach ubiblock ubiformat \
ubidetach ubirsvol ubirmvol ubimkvol \
snapshot snapshot_tool date \
snapshot snapshot_tool date logger \
$RAMFS_COPY_LOSETUP $RAMFS_COPY_LVM \
$RAMFS_COPY_BIN
do
Expand Down

0 comments on commit bb2b715

Please sign in to comment.