chore: 优化开机初始化脚本
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
# Put your custom commands here that should be executed once
|
||||
# the system init finished. By default this file does nothing.
|
||||
|
||||
+[ -f "/data/init.sh" ] && sh /data/init.sh &
|
||||
+[ -f "/data/init.sh" ] && sh /data/init.sh >/dev/null 2>&1 &
|
||||
+
|
||||
exit 0
|
||||
|
||||
@@ -13,8 +13,6 @@ v1.0.0 by: https://del.wang
|
||||
|
||||
EOF
|
||||
|
||||
set -e
|
||||
|
||||
# 等待能够正常访问 baidu.com
|
||||
while ! ping -c 1 baidu.com > /dev/null 2>&1; do
|
||||
echo "🤫 等待网络连接中..."
|
||||
|
||||
@@ -52,6 +52,8 @@ chmod +x ./flash
|
||||
|
||||
# 第 4 步:刷写固件(注意替换固件文件的实际路径)
|
||||
./flash system system0 root-patched.squashfs
|
||||
|
||||
# PS: 如果提示刷写错误,可以多试几次,不一定是真的无法刷机
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
squashfs-root
|
||||
root.squashfs
|
||||
root.squashfs
|
||||
squashfs
|
||||
Reference in New Issue
Block a user