update support for orangepi_zero_2w

This commit is contained in:
wt
2025-10-03 19:46:56 +07:00
parent 3a39d99661
commit f6741325da
11 changed files with 25 additions and 5 deletions
+3 -1
View File
@@ -55,7 +55,7 @@ BUILD_ID="$distro_build_id"
EOF
busybox_rootfs
cp -v $build/busybox/busybox-1.36.1/busybox $rootfspath/usr/bin # &>> $fulllogfile
cp -v $build/busybox/busybox-${BUSYBOX_VERSION}/busybox $rootfspath/usr/bin # &>> $fulllogfile
cd $rootfspath/usr/bin
for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
cp -v $root/rootfs/init.in $rootfspath/init
@@ -94,6 +94,8 @@ EOF
EOF
fi
[ ! -z "$ROOTFS_OVERLAY" ] && cp -rv $ROOTFS_OVERLAY/* $rootfspath
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
chmod 644 $rootfspath/etc/{passwd,group,hostname,hosts,fstab,shells,issue} $rootfspath/etc/network/interfaces