From 4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 Aug 2012 01:20:28 +0200 Subject: Consistently using case instead of if for conditionals in script boilerplate. --- scripts/boot/3020-swapon | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'scripts/boot/3020-swapon') diff --git a/scripts/boot/3020-swapon b/scripts/boot/3020-swapon index 82e998a..7541c26 100755 --- a/scripts/boot/3020-swapon +++ b/scripts/boot/3020-swapon @@ -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*}" -- cgit v1.2.3