summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh17
1 files changed, 8 insertions, 9 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 86bf23bd3..5f266158c 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -150,16 +150,15 @@ Set_defaults ()
# Setting initsystem
case "${LB_MODE}" in
ubuntu)
- if [ "${LB_INITRAMFS}" = "live-boot" ]
- then
- LB_INITSYSTEM="${LB_INITSYSTEM:-upstart}"
- else
- LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
- fi
- ;;
+ case "${LB_INITRAMFS}" in
+ live-boot)
+ LB_INITSYSTEM="${LB_INITSYSTEM:-upstart}"
+ ;;
- *)
- LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ *)
+ LB_INITSYSTEM="${LB_INITSYSTEM:-sysvinit}"
+ ;;
+ esac
;;
esac