diff options
author | maximilian attems <maks@debian.org> | 2006-01-24 12:27:42 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-01-24 12:27:42 +0100 |
commit | 5ac8871bdc5093eb2b570937dcc37167b904cb8e (patch) | |
tree | 283b2d7b6e8497f960982a2fe0225251900d9773 /scripts/functions | |
parent | f2688cc18d0e0420ad4ad069ed6bb32b2869badb (diff) | |
download | initramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.tar.gz initramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.zip |
sync 0.40ubuntu16
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/scripts/functions b/scripts/functions index f9cad01..7f8fa3c 100644 --- a/scripts/functions +++ b/scripts/functions @@ -35,12 +35,22 @@ log_end_msg() /sbin/usplash_write "SUCCESS ok" fi _log_msg "Done." + update_progress } -# update_progress() # ToDo: NOP placeholder... what else for usplash? -# { -# : -# } +update_progress() +{ + if [ -z "$PROGRESS_STATE" ]; then + export PROGRESS_STATE=0 + 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" + fi +} panic() { |