summaryrefslogtreecommitdiff
path: root/modereset
blob: b3c8d413d3a6e19274c8481a6af090148abc2eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

reset_current_mode() {
	if [ -d /usr/portage/.git ] ; then
		for i in "(ls /usr/portage|grep -v packages|grep -v distfiles)"; do
			rm -rf $i
		done
		rm -rf /usr/portage/.git*
		rm /etc/portage/make.conf
		rm /etc/portage/make.profile
		rm /etc/portage
	fi
}

main () {
	reset_current_mode
}
main