summaryrefslogtreecommitdiff
path: root/modereset
diff options
context:
space:
mode:
Diffstat (limited to 'modereset')
-rwxr-xr-xmodereset16
1 files changed, 16 insertions, 0 deletions
diff --git a/modereset b/modereset
new file mode 100755
index 0000000..6fad670
--- /dev/null
+++ b/modereset
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+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
+}
+
+main () {
+ reset_current_mode
+}
+main