Consistently using case instead of if for conditionals in script boilerplate.
[live-boot-grml.git] / scripts / boot / 3020-swapon
index 82e998a..7541c26 100755 (executable)
@@ -18,10 +18,14 @@ Swap ()
                esac
        done
 
-       if [ "${LIVE_SWAP}" != "true" ]
-       then
-               return 0
-       fi
+       case "${LIVE_SWAP}" in
+               true)
+                       ;;
+
+               *)
+                       return 0
+                       ;;
+       esac
 
        LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}"