diff options
author | maximilian attems <maks@debian.org> | 2006-02-27 00:20:17 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-02-27 00:20:17 +0100 |
commit | 830fd3fa51658cf0398cbb037a8485439ae4ce2d (patch) | |
tree | 7f074e4f4d39f782def3c1ea14106339a16f3ff2 /scripts/functions | |
parent | a563d25cc42346ba18a43c2a37896316c245d922 (diff) | |
download | initramfs-tools-830fd3fa51658cf0398cbb037a8485439ae4ce2d.tar.gz initramfs-tools-830fd3fa51658cf0398cbb037a8485439ae4ce2d.zip |
sync with ubuntu22 + some handmerges
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/functions b/scripts/functions index c550123..6825519 100644 --- a/scripts/functions +++ b/scripts/functions @@ -40,15 +40,14 @@ log_end_msg() update_progress() { + [ -d /dev/.initramfs ] || return + if [ -z "$PROGRESS_STATE" ]; then export PROGRESS_STATE=0 fi - if [ -d /dev/.initramfs ]; then - PROGRESS_STATE=$(($PROGRESS_STATE + 1)) - echo "PROGRESS_STATE=${PROGRESS_STATE}" \ - > /dev/.initramfs/progress_state - fi + PROGRESS_STATE=$(($PROGRESS_STATE + 1)) + echo "PROGRESS_STATE=${PROGRESS_STATE}" > /dev/.initramfs/progress_state if [ -x /sbin/usplash_write ]; then /sbin/usplash_write "PROGRESS $PROGRESS_STATE" |