Merge branch 'master' into box86

pull/610/head
Itai Nelken 3 years ago committed by GitHub
commit 594b56b7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,8 +7,10 @@ assignees: ''
---
Can this app run on RPi? If so, please provide a link to a tutorial if applicable.
Is this app something many GUI users would find useful?
Is this app installable with `sudo apt install`?
Can this app run on RPi? If so, please provide a link to a tutorial if applicable.
Is this app something many GUI users would find useful?
Is this app installable with `sudo apt install`?
If you've created a zip file for this app, upload it here.

@ -1,5 +1,7 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
@ -26,11 +28,10 @@ if [ ! -z "$(file "$(readlink -f "/sbin/init")" | grep 64)" ]; then
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
sudo dpkg --remove-architecture armhf || warning "Failed to remove armhf architecture.\nMost likely, you already had other armhf packages installed prior to this."
sudo dpkg --remove-architecture armhf || warning "armhf architecture should be removed by now, but it isn't!"
check-armhf
if [[ "$ARMHF" == *"armhf"* ]]; then
warning "armhf architecture should be removed by now, but it isn't!"
warning "You probably have some other programs using it, remove it by running 'sudo dpkg --remove-architecture armhf'."
warning "You probably have some other programs using it, remove it by running 'sudo dpkg --remove-architecture armhf'."
fi
elif [ ! -z "$(file "$(readlink -f "/sbin/init")" | grep 32)" ]; then
@ -41,4 +42,4 @@ else
fi
echo "running 'sudo apt update'..."
sudo apt update
sudo apt update

@ -102,7 +102,7 @@ elif echo "$vmsplit_output" | grep -q "^CONFIG_VMSPLIT_2G=y" || echo "$vmsplit_o
[ -e ~/linux ] && (echo "$HOME/linux already exists, moving it to $HOME/linux.bak" ; mv -f ~/linux ~/linux.bak)
#download precompiled kernel
echo "Downloading precompiled kernel..."
wget https://github.com/Itai-Nelken/RPi-3g-1g-kernel-wine/releases/download/3/rpi23_3g1g_kernel.tar.xz -O ~/3g1g-rpi-kernel.tar.xz || error "Failed to download prebuilt kernel!"
wget https://github.com/Itai-Nelken/RPi-3g-1g-kernel-wine/releases/download/4/rpi23_3g1g_kernel.tar.xz -O ~/3g1g-rpi-kernel.tar.xz || error "Failed to download prebuilt kernel!"
#extract precompiled kernel
echo "Extracting prebuilt kernel..."
tar -xf ~/3g1g-rpi-kernel.tar.xz || error "Failed to extract kernel!"

Loading…
Cancel
Save