# Colors ESC_SEQ="\x1b[" COL_RESET=$ESC_SEQ"39;49;00m" COL_RED=$ESC_SEQ"31;01m" COL_GREEN=$ESC_SEQ"32;01m" COL_YELLOW=$ESC_SEQ"33;01m" COL_BLUE=$ESC_SEQ"34;01m" COL_MAGENTA=$ESC_SEQ"35;01m" COL_CYAN=$ESC_SEQ"36;01m" echo -e "$COL_GREEN * $COL_RESET Entering AutoGentoo Directory" echo -e "$COL_BLUE * $COL_RESET Find log in /var/log/autogentoo.log" mkdir /AutoGentoo 2> /var/log/autogentoo.log cd /AutoGentoo user=$(whoami) if [ "$user" != "root" ]; then echo -e "$COL_RED * $COL_RESET Not running as root!" exit 0 fi echo -e "$COL_GREEN * $COL_RESET Removing Files" rm -rf * 2> /dev/null echo -e "$COL_GREEN * $COL_RESET Installing Dependencies" wget -q "https://pypi.python.org/packages/source/g/getch/getch-1.0.tar.gz" tar xf getch* >> /dev/null cd getch-1.0/ eselect python set python3.4 python setup.py build >> /dev/null python setup.py install >> /dev/null cd /AutoGentoo echo -e "$COL_GREEN * $COL_RESET Installing AutoGentoo" wget -q autogentoo.bitballoon.com/MainProgram/2.5/AutoGentoo.tar.gz tar xf AutoGentoo.tar.gz 2> AutoGentoo.log echo -e "$COL_GREEN * $COL_RESET Cleaning Up" rm -rf getch* >> /dev/null rm -rf AutoGentoo.tar.gz >> /dev/null chmod +x mkautogentoo cp mkautogentoo /usr/bin/mkautogentoo echo -e "$COL_GREEN * $COL_RESET Finished" echo -e "$COL_GREEN * $COL_RESET Starting AutoGentoo..." python autogentoo.py