summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_interactive
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_interactive')
-rwxr-xr-xhelpers/lh_chroot_interactive47
1 files changed, 22 insertions, 25 deletions
diff --git a/helpers/lh_chroot_interactive b/helpers/lh_chroot_interactive
index ac90f89..556f079 100755
--- a/helpers/lh_chroot_interactive
+++ b/helpers/lh_chroot_interactive
@@ -33,40 +33,37 @@ Set_defaults
Breakpoint "chroot_interactive: Init"
-if [ "${LIVE_INTERACTIVE}" != "disabled" ]
+if [ "${LIVE_INTERACTIVE}" = "disabled" ]
then
- # Requiring stage file
- Require_stagefile .stage/bootstrap
+ exit 0
+fi
- # Checking lock file
- Check_lockfile .lock
+# Requiring stage file
+Require_stagefile .stage/bootstrap
- # Creating lock file
- Create_lockfile .lock
+# Checking stage file
+Check_stagefile .stage/chroot_interactive
- # Checking stage file
- Check_stagefile .stage/chroot_interactive
+# Checking lock file
+Check_lockfile .lock
- case "${LIVE_INTERACTIVE}" in
- enabled|shell)
- echo "Pausing build: starting interactive shell..."
+# Creating lock file
+Create_lockfile .lock
+case "${LIVE_INTERACTIVE}" in
+ enabled|shell)
+ echo "Pausing build: starting interactive shell..."
Chroot "/bin/bash --login"
- ;;
-
+ ;;
x11)
- echo "Pausing build: starting interactive X11..."
-
+ echo "Pausing build: starting interactive X11..."
Chroot "startx"
- ;;
-
+ ;;
xnest)
- echo "Pausing build: starting interactive Xnest..."
-
+ echo "Pausing build: starting interactive Xnest..."
#Chroot "" # FIXME
- ;;
- esac
+ ;;
+esac
- # Creating stage file
- Create_stagefile .stage/chroot_symlinks
-fi
+# Creating stage file
+Create_stagefile .stage/chroot_symlinks