esac
done
- if [ "${LIVE_DEBUG}" != "true" ]
- then
- return 0
- fi
+ case "${LIVE_DEBUG}" in
+ true)
+ ;;
+ *)
+ return 0
+ ;;
+ esac
+
+ # Write the trace output
set -x
}
esac
done
- if [ "${LIVE_READ_ONLY}" != "true" ]
- then
- return 0
- fi
+ case "${LIVE_READ_ONLY}" in
+ true)
+ ;;
+
+ *)
+ return 0
+ ;;
+ esac
# Marking some block devices as read-only to ensure that nothing
# gets written as linux still writes to 'only' read-only mounted filesystems.
esac
done
- if [ "${LIVE_VERIFY_CHECKSUMS}" != "true" ]
- then
- return 0
- fi
+ case "${LIVE_VERIFY_CHECKSUMS}" in
+ true)
+ ;;
+
+ *)
+ return 0
+ ;;
+ esac
_MOUNTPOINT="${1}"
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*}"