mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
Updated install scripts and added ARMv6 supports.
This commit is contained in:
parent
c2d3728398
commit
1c7dbfe63a
6 changed files with 23 additions and 8 deletions
17
install.sh
17
install.sh
|
@ -134,13 +134,24 @@ identify_the_operating_system_and_architecture() {
|
|||
if [[ "$(uname)" == 'Linux' ]]; then
|
||||
case "$(uname -m)" in
|
||||
'i386' | 'i686')
|
||||
MACHINE='386'
|
||||
MACHINE='32'
|
||||
;;
|
||||
'amd64' | 'x86_64')
|
||||
MACHINE='amd64'
|
||||
MACHINE='64'
|
||||
;;
|
||||
'armv5tel')
|
||||
MACHINE='arm32-v5'
|
||||
;;
|
||||
'armv6l')
|
||||
MACHINE='arm32-v6'
|
||||
grep Features /proc/cpuinfo | grep -qw 'vfp' || MACHINE='arm32-v5'
|
||||
;;
|
||||
'armv7' | 'armv7l')
|
||||
MACHINE='arm32-v7a'
|
||||
grep Features /proc/cpuinfo | grep -qw 'vfp' || MACHINE='arm32-v5'
|
||||
;;
|
||||
'armv8' | 'aarch64')
|
||||
MACHINE='arm64'
|
||||
MACHINE='arm64-v8a'
|
||||
;;
|
||||
*)
|
||||
echo -e "${FontRed}error: The architecture is not supported.${FontSuffix}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue