diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 16:06:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-04-17 16:06:42 +0100 |
commit | c4cc2096a6adfc8edabc02c1f54220f2bd709742 (patch) | |
tree | 267f976a43b839750e3c2134e1c1bc65489880f0 | |
parent | 8bdac77d9703d1ed6104138e69fe3f980c4ef6ec (diff) |
implement resetmode to clean previous mode before switching to new mode
-rwxr-xr-x | resetmode | 3 | ||||
-rwxr-xr-x | usermode | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 } @@ -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 |