summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/functions7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index 2113745..c550123 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -44,8 +44,11 @@ update_progress()
export PROGRESS_STATE=0
fi
- PROGRESS_STATE=$(($PROGRESS_STATE + 1))
- echo "PROGRESS_STATE=${PROGRESS_STATE}" > /dev/.initramfs/progress_state
+ if [ -d /dev/.initramfs ]; then
+ PROGRESS_STATE=$(($PROGRESS_STATE + 1))
+ echo "PROGRESS_STATE=${PROGRESS_STATE}" \
+ > /dev/.initramfs/progress_state
+ fi
if [ -x /sbin/usplash_write ]; then
/sbin/usplash_write "PROGRESS $PROGRESS_STATE"