summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-17 16:06:42 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-17 16:06:42 +0100
commitc4cc2096a6adfc8edabc02c1f54220f2bd709742 (patch)
tree267f976a43b839750e3c2134e1c1bc65489880f0
parent8bdac77d9703d1ed6104138e69fe3f980c4ef6ec (diff)
implement resetmode to clean previous mode before switching to new mode
-rwxr-xr-xresetmode3
-rwxr-xr-xusermode2
2 files changed, 4 insertions, 1 deletions
diff --git a/resetmode b/resetmode
index f8ddc32..6fad670 100755
--- a/resetmode
+++ b/resetmode
@@ -4,6 +4,9 @@ reset_current_mode() {
if [ -d /usr/portage/.git ] ; then
rm -rf /usr/portage/*
rm -rf /usr/portage/.git*
+ rm /etc/portage/make.conf
+ rm /etc/portage/make.profile
+ rm /etc/portage
fi
}
diff --git a/usermode b/usermode
index 5ad32e2..6a8e925 100755
--- a/usermode
+++ b/usermode
@@ -15,7 +15,7 @@ fetch_usermode_portage_tree() {
fi
}
-set_usermode_portage_tree () {
+set_usermode_portage_tree() {
ln -sf /opt/kogaion-build/conf/intel/portage /etc/portage
ln -sf /etc/portage/make.conf.amd64-user /etc/portage/make.conf
eselect profile set 1