mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
Merge branch 'main' of https://github.com/mofeng-git/One-KVM
This commit is contained in:
commit
43297fa3c1
@ -7,7 +7,6 @@ CURRENTWD=$PWD
|
||||
FIND_FILE="/etc/sudoers"
|
||||
FIND_STR="short_press_gpio420"
|
||||
|
||||
|
||||
#检查架构和Python版本
|
||||
check-environment(){
|
||||
echo -e "\e[0;32m设备名称:$MACHINE\nPython版本:$PYVER"
|
||||
@ -40,8 +39,6 @@ update-alternative(){
|
||||
update-alternatives --set python3 $(which python3.10)
|
||||
}
|
||||
|
||||
|
||||
|
||||
#修改设备树文件
|
||||
change-device-tree(){
|
||||
cp -f ./patch/meson8b-onecloud.dtb /boot/dtb/meson8b-onecloud.dtb
|
||||
@ -107,7 +104,6 @@ add-patches(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
show-info(){
|
||||
echo "One-KVM V0.5" >> installed.txt
|
||||
ipaddr=`ip addr | grep "scope global" | awk '{print $2}' |awk -F/ '{print $1}'`
|
||||
@ -115,7 +111,6 @@ show-info(){
|
||||
echo "机器已重启,等待10秒然后拔插电源,One-KVM就安装完成了!"
|
||||
}
|
||||
|
||||
|
||||
check-environment
|
||||
override-uboot
|
||||
change-device-tree
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user