openwrt/package/base-files/files/lib/upgrade
Daniel Golle 4d3303b1bd
base-files: stage2: improve /proc/*/stat parser
Simply reading /proc/*/stat as a space-separated string will not work
as the process name may itself contain spaces. Hence we must match on
the '(' and ')' characters around the process name and can then handle
the remaining string as space-separated values.
This fixes shell error messages which have been popping up the console
due to spaces in process names being interpreted as field separators.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-11-13 18:36:52 +00:00
..
keep.d base-files: Add /etc/shinit for non-login shell init 2020-03-01 21:35:59 +01:00
common.sh base-files: drop get_partition_by_name shell function 2021-11-01 18:01:02 +00:00
do_stage2 treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup 2019-09-11 09:05:35 +02:00
fwtool.sh base-files: change logging for upgrade on fwtool 2021-05-17 01:00:14 +02:00
legacy-sdcard.sh base-files: rename 'sdcard' to 'legacy-sdcard' 2021-08-16 12:22:17 +01:00
nand.sh base-files: remove unneeded '$' signs in nand.sh 2021-02-24 11:42:02 +00:00
stage2 base-files: stage2: improve /proc/*/stat parser 2021-11-13 18:36:52 +00:00