mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
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:
parent
d374e2cdb4
commit
bb2b7156a4
@ -71,6 +71,7 @@ _vn() {
|
|||||||
|
|
||||||
v() {
|
v() {
|
||||||
_v "$(date) upgrade: $@"
|
_v "$(date) upgrade: $@"
|
||||||
|
logger -p info -t upgrade "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
vn() {
|
vn() {
|
||||||
|
@ -45,7 +45,7 @@ switch_to_ramfs() {
|
|||||||
mtd partx losetup mkfs.ext4 nandwrite flash_erase \
|
mtd partx losetup mkfs.ext4 nandwrite flash_erase \
|
||||||
ubiupdatevol ubiattach ubiblock ubiformat \
|
ubiupdatevol ubiattach ubiblock ubiformat \
|
||||||
ubidetach ubirsvol ubirmvol ubimkvol \
|
ubidetach ubirsvol ubirmvol ubimkvol \
|
||||||
snapshot snapshot_tool date \
|
snapshot snapshot_tool date logger \
|
||||||
$RAMFS_COPY_LOSETUP $RAMFS_COPY_LVM \
|
$RAMFS_COPY_LOSETUP $RAMFS_COPY_LVM \
|
||||||
$RAMFS_COPY_BIN
|
$RAMFS_COPY_BIN
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user