summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/fbsplash
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-06-06 16:50:02 (GMT)
committerBob Igo <bob@stormlogic.com>2009-06-06 16:50:02 (GMT)
commit9c54ec9aeb2a74932f3d13563f441af668b59f46 (patch)
tree0b618ec55765e0ab0b8f2b7877a2e0735425cdb0 /abs/core-testing/fbsplash
parent4d49c500658b2e9c06742f0930dd203448ecabb3 (diff)
downloadlinhes_pkgbuild-9c54ec9aeb2a74932f3d13563f441af668b59f46.zip
linhes_pkgbuild-9c54ec9aeb2a74932f3d13563f441af668b59f46.tar.gz
linhes_pkgbuild-9c54ec9aeb2a74932f3d13563f441af668b59f46.tar.bz2
Surrounded all variables in quotes for safe bash comparisons.
Diffstat (limited to 'abs/core-testing/fbsplash')
-rw-r--r--abs/core-testing/fbsplash/fbsplash.inithooks10
1 files changed, 5 insertions, 5 deletions
diff --git a/abs/core-testing/fbsplash/fbsplash.inithooks b/abs/core-testing/fbsplash/fbsplash.inithooks
index 0e8c60c..c396b92 100644
--- a/abs/core-testing/fbsplash/fbsplash.inithooks
+++ b/abs/core-testing/fbsplash/fbsplash.inithooks
@@ -28,14 +28,14 @@ stat_busy() {
# Load variables #
var_load STEP_NR MAX_STEPS RC_MULTI RC_SYSINIT RC_SHUTDOWN
# Only update the splash progress if we're in sysinit, multi, or shutdown. #
- if [[ ${SPLASH_RC_MULTI} == 1 || ${SPLASH_RC_SYSINIT} == 1 || ${SPLASH_RC_SHUTDOWN} == 1 ]]; then
+ if [[ "${SPLASH_RC_MULTI}" == "1" || "${SPLASH_RC_SYSINIT}" == "1" || "${SPLASH_RC_SHUTDOWN}" == "1" ]]; then
((SPLASH_STEP_NR++))
SPLASH_PROGRESS=$((100*${SPLASH_STEP_NR}/${SPLASH_MAX_STEPS}))
SPLASH_CURRENT_PROGRESS=${SPLASH_PROGRESS}
splash_update_progress ${SPLASH_PROGRESS}
var_save STEP_NR CURRENT_PROGRESS
fi
- if [ ${SPLASH_RC_SHUTDOWN} == 1 ]; then
+ if [ "${SPLASH_RC_SHUTDOWN}" == "1" ]; then
save_shutdown_steps
fi
@@ -57,7 +57,7 @@ start_daemon() {
}
# rc.sysinit #
-if [ $CALLER == '/etc/rc.sysinit' ]; then
+if [ "$CALLER" == '/etc/rc.sysinit' ]; then
# echo "fbsplash: Setting up splash..."
splash_cache_prep
SPLASH_MAX_STEPS=$(load_boot_steps)
@@ -69,14 +69,14 @@ if [ $CALLER == '/etc/rc.sysinit' ]; then
fi
# rc.multi #
-if [ $CALLER == '/etc/rc.multi' ]; then
+if [ "$CALLER" == '/etc/rc.multi' ]; then
SPLASH_RC_MULTI=1
SPLASH_RC_SYSINIT=0
var_save RC_MULTI RC_SYSINIT
fi
# rc.shutdown #
-if [ $CALLER == '/etc/rc.shutdown' ]; then
+if [ "$CALLER" == '/etc/rc.shutdown' ]; then
# echo "fbsplash: Setting up splash..."
splash_cache_prep
SPLASH_MAX_STEPS=$(load_shutdown_steps)