pentoo-updater: or correctly

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-12-14 22:12:57 -05:00
parent 25cdccdf84
commit 33c41bd87f
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -95,8 +95,13 @@ update_kernel() {
#okay, we have a config, now we mangle it for x86 as appropriate
if [ "${arch}" = "x86" ] && grep -q pae /proc/cpuinfo; then
sed -i '/^CONFIG_HIGHMEM4G/s/CONFIG_HIGHMEM4G/# CONFIG_HIGHMEM4G/' "${local_config}"
sed -i '/^# *$CONFIG_HIGHMEM64G=/s/^# *//' "${local_config}"
sed -i '/^$CONFIG_HIGHMEM64G/s/=.*/=y/' "${local_config}"
sed -i '/^# *CONFIG_HIGHMEM64G=/s/^# *//' "${local_config}"
sed -i '/^CONFIG_HIGHMEM64G/s/=.*/=y/' "${local_config}"
oldpwd=$(pwd)
cd "/usr/src/linux-${bestkern}"
make olddefconfig
cd "${oldpwd}"
unset oldpwd
fi
fi
#next we fix the symlink