aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config.d/controller/modules/functions/ccrevert_chroot.sh')
-rw-r--r--config.d/controller/modules/functions/ccrevert_chroot.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/config.d/controller/modules/functions/ccrevert_chroot.sh b/config.d/controller/modules/functions/ccrevert_chroot.sh
new file mode 100644
index 0000000..8ec882a
--- /dev/null
+++ b/config.d/controller/modules/functions/ccrevert_chroot.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# EXPORT IMPORTANT VARIABLES BEFORE GOING ON
+source /etc/profile && export PS1="( 'Configuration Phase' ) $PS1"
+CHROOT_DIR="var/tmp/ctworkdir/"
+export CHROOT_DIR
+PATH=${PATH}:${CHDIR}
+export PATH
+if source "${CHROOT_DIR}/cchroot_functions"; then
+ echo "Exporting chroot functions"
+else
+ echo "Failed to export chroot functions, aborting"
+ exit 1
+fi
+
+_ctflag_chroot="revert"
+export _ctflag_chroot
+
+# REVERT CONFIGURATION FILES
+_configure_system
+
+# REVERT RUNLEVELS
+_runlevel_configuration \ No newline at end of file