From 0762a8e56e8ad79ce3a3884aa0743ee459362ad4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 10 Feb 2011 23:44:40 +0100 Subject: Updating upstart support addition to current coding style. --- functions/defaults.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'functions') 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 -- cgit v1.2.3