xperia z5 安装 entware 记录

星星哥哥IP属地: 福建
字数 72

安装busybox installer

/system/bin/mount -o rw,remount /
mkdir /opt
mkdir /bin
ln -s /system/bin/sh /bin/sh

/data/opt 作为opt的根目录

mkdir /data/opt
mount -o ro,remount /
mount -o bind /data/opt /opt

安装Entware

wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh

增加init.d支持: https://forum.xda-developers.com/showthread.php?t=2711680

/system/bin/mount -o rw,remount /system
echo 'busybox run-parts /system/etc/init.d/' >> /system/etc/init.qcom.post_boot.sh
mkdir /system/etc/init.d
chmod 755 /system/etc/init.d

init 脚本:

cat << EOF >/system/etc/init.d/00entware
#!/system/bin/sh
sleep 3
/system/bin/mount -o rw,remount /
sleep 1
/system/bin/mkdir /opt
/system/bin/mkdir /bin
ln -s /system/bin/sh /bin/sh
/system/bin/mount -o ro,remount /
sleep 3
mount -o bind /data/opt /opt
sleep 2
/opt/etc/init.d/rc.unslung start

EOF

/system/bin/mount -o ro,remount /system

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
0人点赞
总资产1共写了470字获得1个赞共4个粉丝

推荐阅读更多精彩内容