base-files: add syslog logging for v function

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>
This commit is contained in:
Florian Eckert 2021-02-01 11:02:30 +01:00 committed by Paul Spooren
parent d374e2cdb4
commit bb2b7156a4
2 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ _vn() {
v() {
_v "$(date) upgrade: $@"
logger -p info -t upgrade "$@"
}
vn() {

View File

@ -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