Browse Source

gein.sh: Fix Stage3 download for x86; Cleanup

master
Johnathan C Maudlin 4 years ago committed by GitHub
parent
commit
5d9d30c5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      gein.sh

30
gein.sh

@ -124,7 +124,18 @@ SwapSize="2G" @@ -124,7 +124,18 @@ SwapSize="2G"
TimeZone="America/New_York"
AutoKernel="true"
KernelConfig="$Source/usr/src/linux/4.16.config"
#KernelConfig="$Source/usr/src/linux/4.16.config"
## Command Aliases
#
# This section defines some command aliases that will be used later on,
# and is primarily used as a mechanism to inhibit or control output in a
# way that can be easily updated or changed if needed.
Emerge="emerge -v --quiet-build"
Make="make -s -j$CPUCores"
Wget="wget -q"
## Portage
@ -134,14 +145,16 @@ KernelConfig="$Source/usr/src/linux/4.16.config" @@ -134,14 +145,16 @@ KernelConfig="$Source/usr/src/linux/4.16.config"
# Changing this to 'Cores + 1', despite this being suggested in many
# corners of the web, is not a good idea and will actually increase the
# total time needed to compile.
#
case "$(uname -m)" in
i486|i586)
CPUDir="x86"
CPUArch="i486";;
i686|x86|x86_32)
CPUDir="x86"
CPUArch="i686";;
amd64|x86_64)
CPUDir="amd64"
CPUArch="amd64";;
*)
@ -153,17 +166,6 @@ esac @@ -153,17 +166,6 @@ esac
CPUCores="$(grep -c ^processor /proc/cpuinfo)"
## Command Aliases
#
# This section defines some command aliases that will be used later on,
# and is primarily used as a mechanism to inhibit or control output in a
# way that can be easily updated or changed if needed.
Emerge="emerge -v --quiet-build"
Make="make -s -j$CPUCores"
Wget="wget -q"
## Gentoo Stage3
#
# This section exists to automate identifying and downloading the latest
@ -172,7 +174,7 @@ Wget="wget -q" @@ -172,7 +174,7 @@ Wget="wget -q"
# errors when executing MINIMAL() or DESKTOP() due to cURL missing
# after completing the BOOTSTRAP().
S3_Source="http://distfiles.gentoo.org/releases/$CPUArch/autobuilds"
S3_Source="http://distfiles.gentoo.org/releases/$CPUDir/autobuilds"
S3_Release="curl -s $S3_Source/latest-stage3-$CPUArch.txt"
if [ -x "$(command -v curl)" ]; then

Loading…
Cancel
Save