Browse files

Merge pull request #88 from critdamage/patch-1

Update utils/flashcache
  • Loading branch information...
2 parents 0bdf08f + 73fc6f0 commit e0724aaf8f27d8051131709c62e5a3f91da9361b @mohans mohans committed Oct 10, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 utils/flashcache
View
14 utils/flashcache
@@ -2,7 +2,7 @@
#
# flashcache Init Script to manage cachedev loads
#
-# chkconfig: 345 90 10
+# chkconfig: 345 9 98
# description: Flashcache Management
# Flashcache options
@@ -15,11 +15,11 @@ MOUNTPOINT=
FLASHCACHE_NAME=
# Just a check, to validate the above params are set
-[ -n "$SSD_DISK" ] && exit 10
-[ -n "$BACKEND_DISK" ] && exit 11
-[ -n "$CACHEDEV_NAME" ] && exit 12
-[ -n "$MOUNTPOINT" ] && exit 13
-[ -n "$FLASHCACHE_NAME" ] && exit 14
+[ -z "$SSD_DISK" ] && exit 10
+[ -z "$BACKEND_DISK" ] && exit 11
+[ -z "$CACHEDEV_NAME" ] && exit 12
+[ -z "$MOUNTPOINT" ] && exit 13
+[ -z "$FLASHCACHE_NAME" ] && exit 14
# Source function library.
. /etc/rc.d/init.d/functions
@@ -44,7 +44,7 @@ start() {
#flashcache_load the cachedev
$FLASHCACHE_LOAD $SSD_DISK $CACHEDEV_NAME
RETVAL=$?
- if [ $RETVAl -ne 0 ]; then
+ if [ $RETVAL -ne 0 ]; then
echo "Failed: flashcache_load $SSD_DISK $CACHEDEV_NAME"
exit $RETVAL;
fi

0 comments on commit e0724aa

Please sign in to comment.