diff options
author | Christos.K <freedomrfox@gmail.com> | 2017-07-12 06:26:36 +0300 |
---|---|---|
committer | Christos.K <freedomrfox@gmail.com> | 2017-07-12 06:26:36 +0300 |
commit | e60e17ca3b4d317e81e83b6251240c42479c46a6 (patch) | |
tree | 18fee319651bd6b7d51ad66b50daf61c6d423bf5 /config.d/controller/modules/functions/ccrevert_chroot.sh | |
parent | Included revert functions & conditions (diff) | |
download | GSE-e60e17ca3b4d317e81e83b6251240c42479c46a6.tar.gz GSE-e60e17ca3b4d317e81e83b6251240c42479c46a6.tar.bz2 GSE-e60e17ca3b4d317e81e83b6251240c42479c46a6.zip |
Revert chroot script
Diffstat (limited to 'config.d/controller/modules/functions/ccrevert_chroot.sh')
-rw-r--r-- | config.d/controller/modules/functions/ccrevert_chroot.sh | 23 |
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 |