updated files and added busybox vars

This commit is contained in:
wt
2025-10-03 12:42:22 +07:00
parent 99e2da836f
commit 3a39d99661
21 changed files with 5715 additions and 276 deletions
+10 -1
View File
@@ -57,7 +57,7 @@ EOF
busybox_rootfs
cp -v $build/busybox/busybox-1.36.1/busybox $rootfspath/usr/bin # &>> $fulllogfile
cd $rootfspath/usr/bin
for i in $(cat $root/busybox/busybox_list); do ln -sv busybox $i; done
for i in $(cat $BUSYBOX_LIST_FILE); do ln -sv busybox $i; done
cp -v $root/rootfs/init.in $rootfspath/init
kernel_headers
uclibc
@@ -85,6 +85,15 @@ EOF
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
[ "$LIBSQLITE3_ENABLE" = "Y"] && libsqlite3
if [ ! -z "$DEFAULT_HOSTNAME" ]; then
echo "$DEFAULT_HOSTNAME" > $rootfspath/etc/hostname
cat << EOF > $rootfspath/etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 $DEFAULT_HOSTNAME.localdomain $DEFAULT_HOSTNAME
EOF
fi
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