zero-system: a script to make system's mine

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-05-21 22:42:14 -04:00
parent 55a9110144
commit fb7a0b905d
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

11
scripts/zero-system Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
if ! grep -q CPU_FLAGS_X86 /etc/portage/make.conf; then
cpuid2cpuflags | sed -e 's/: /="/' -e 's/$/"/' >> /etc/portage/make.conf
fi
PROFILE=$(eselect profile show | grep pentoo | awk '{print $1}')
unlink /etc/portage/make.profile
mkdir /etc/portage/make.profile
printf "6\n" > /etc/portage/make.profile/eapi
printf "${PROFILE}\n" > /etc/portage/make.profile/parent
printf "pentoo:pentoo/zero-system\n" >> /etc/portage/make.profile/parent
printf "pentoo/zero-system\n" >>/var/lib/portage/world