linux57: extra changes to Ubuntu install script that have been forgotten (#41)

* linux57: customization.cfg: make custom_gcc_path apply to ubuntu

* linux57: install.sh: remove unneeded variable

* linux57: install.sh: uncomment kernel uninstall command line
This commit is contained in:
Adel Kara Slimane
2020-08-10 12:13:17 +02:00
committed by GitHub
parent 416a2c3d5f
commit a278361630
2 changed files with 2 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ _EXT_CONFIG_PATH=~/.config/frogminer/linux57-tkg.cfg
# Default is "true". # Default is "true".
_NUKR="true" _NUKR="true"
# [Arch specific] Custom compiler root dirs - Leave empty to use system compilers # Custom compiler root dirs - Leave empty to use system compilers
# Example: CUSTOM_GCC_PATH="/home/frog/PKGBUILDS/mostlyportable-gcc/gcc-mostlyportable-9.2.0" # Example: CUSTOM_GCC_PATH="/home/frog/PKGBUILDS/mostlyportable-gcc/gcc-mostlyportable-9.2.0"
CUSTOM_GCC_PATH="" CUSTOM_GCC_PATH=""

View File

@@ -19,8 +19,6 @@ plain() {
# alias plain=echo # alias plain=echo
set -e set -e
# Variable to know if the user command has been recognised
_command_recognised=0
_where=`pwd` _where=`pwd`
srcdir="$_where" srcdir="$_where"
@@ -64,8 +62,6 @@ if [ "$1" == "install" ] || [ "$1" == "config" ]; then
_distro="" _distro=""
fi fi
_command_recognised=1
if [ -d linux-${_basekernel}.orig ]; then if [ -d linux-${_basekernel}.orig ]; then
rm -rf linux-${_basekernel}.orig rm -rf linux-${_basekernel}.orig
fi fi
@@ -118,8 +114,6 @@ fi
if [ "$1" == "install" ]; then if [ "$1" == "install" ]; then
_command_recognised=1
# Use custom compiler paths if defined # Use custom compiler paths if defined
if [ -n "${CUSTOM_GCC_PATH}" ]; then if [ -n "${CUSTOM_GCC_PATH}" ]; then
PATH=${CUSTOM_GCC_PATH}/bin:${CUSTOM_GCC_PATH}/lib:${CUSTOM_GCC_PATH}/include:${PATH} PATH=${CUSTOM_GCC_PATH}/bin:${CUSTOM_GCC_PATH}/lib:${CUSTOM_GCC_PATH}/include:${PATH}
@@ -171,7 +165,6 @@ if [ "$1" == "install" ]; then
fi fi
if [ "$1" == "uninstall" ]; then if [ "$1" == "uninstall" ]; then
_command_recognised=1
cd "$_where" cd "$_where"
@@ -195,7 +188,7 @@ if [ "$1" == "uninstall" ]; then
if [ $_delete_index -ge 1 ] && [ $_delete_index -le $i ]; then if [ $_delete_index -ge 1 ] && [ $_delete_index -le $i ]; then
_delete_index=$((_delete_index-1)) _delete_index=$((_delete_index-1))
# sudo dpkg -r linux-headers-${_custom_kernels[$_delete_index]} linux-image-${_custom_kernels[$_delete_index]} sudo dpkg -r linux-headers-${_custom_kernels[$_delete_index]} linux-image-${_custom_kernels[$_delete_index]}
fi fi
rm -f installed-kernels rm -f installed-kernels