diff options
| author | Michael Gloff <mgloff@emacinc.com> | 2020-08-28 22:09:01 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-02 16:00:46 +0100 |
| commit | c19c69ae8ddcb37ad5683b6962ec3def37ad4512 (patch) | |
| tree | 991dece123c33274c727a7f7cd85b3ccffdbd9b8 | |
| parent | d7aec2f4a3e612d4b360c1a52f4dadd75c1e6b53 (diff) | |
| download | poky-c19c69ae8ddcb37ad5683b6962ec3def37ad4512.tar.gz | |
sysvinit rc: Use PSPLASH_FIFO_DIR for progress fifo
psplash expects the fifo to be in /run or specified
by PSPLASH_FIFO_DIR. This patch allows psplash to
quit normally. Also, fix the work around of using
echo directly into the fifo and use psplash-write.
(From OE-Core rev: 2b48bbd0a8de17df74d1fae12b5e4eb3c2c0fb90)
Signed-off-by: Michael Gloff <mgloff@emacinc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | meta/recipes-core/sysvinit/sysvinit/rc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/rc b/meta/recipes-core/sysvinit/sysvinit/rc index 7ca41ae1ae..fd1fdd26ba 100755 --- a/meta/recipes-core/sysvinit/sysvinit/rc +++ b/meta/recipes-core/sysvinit/sysvinit/rc | |||
| @@ -26,11 +26,8 @@ startup_progress() { | |||
| 26 | progress=$progress_size | 26 | progress=$progress_size |
| 27 | fi | 27 | fi |
| 28 | #echo "PROGRESS is $progress $runlevel $first_step + ($step of $num_steps) $step_change $progress_size" | 28 | #echo "PROGRESS is $progress $runlevel $first_step + ($step of $num_steps) $step_change $progress_size" |
| 29 | #if type psplash-write >/dev/null 2>&1; then | 29 | if type psplash-write >/dev/null 2>&1; then |
| 30 | # TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true | 30 | PSPLASH_FIFO_DIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true |
| 31 | #fi | ||
| 32 | if [ -e /mnt/.psplash/psplash_fifo ]; then | ||
| 33 | echo "PROGRESS $progress" > /mnt/.psplash/psplash_fifo | ||
| 34 | fi | 31 | fi |
| 35 | } | 32 | } |
| 36 | 33 | ||
| @@ -176,7 +173,7 @@ startup() { | |||
| 176 | #Uncomment to cause psplash to exit manually, otherwise it exits when it sees a VC switch | 173 | #Uncomment to cause psplash to exit manually, otherwise it exits when it sees a VC switch |
| 177 | if [ "x$runlevel" != "xS" ] && [ ! -x /etc/rc${runlevel}.d/S??xserver-nodm ]; then | 174 | if [ "x$runlevel" != "xS" ] && [ ! -x /etc/rc${runlevel}.d/S??xserver-nodm ]; then |
| 178 | if type psplash-write >/dev/null 2>&1; then | 175 | if type psplash-write >/dev/null 2>&1; then |
| 179 | TMPDIR=/mnt/.psplash psplash-write "QUIT" || true | 176 | PSPLASH_FIFO_DIR=/mnt/.psplash psplash-write "QUIT" || true |
| 180 | umount -l /mnt/.psplash | 177 | umount -l /mnt/.psplash |
| 181 | fi | 178 | fi |
| 182 | fi | 179 | fi |
