summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-02-10 23:44:40 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:42 +0100
commit0762a8e56e8ad79ce3a3884aa0743ee459362ad4 (patch)
tree6e69a4c0ebfe00c96d227e1357b067baf2c43550 /functions/defaults.sh
parentfda3fe6310235084202aa479f191eeada6919f13 (diff)
downloadvyos-live-build-0762a8e56e8ad79ce3a3884aa0743ee459362ad4.tar.gz
vyos-live-build-0762a8e56e8ad79ce3a3884aa0743ee459362ad4.zip
Updating upstart support addition to current coding style.
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