added finit init system support
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
. ./scripts/dnsmasq.sh
|
||||
. ./scripts/iptables.sh
|
||||
. ./scripts/8821au_ko.sh
|
||||
. ./scripts/finit_init.sh
|
||||
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
@@ -45,6 +46,13 @@ rootfs() {
|
||||
rm -rv initscripts
|
||||
ln -sv /proc/mounts etc/mtab # &>> $fulllogfile
|
||||
|
||||
cat <<EOF > $rootfspath/etc/os-release
|
||||
NAME="$distro_name"
|
||||
PRETTY_NAME="$distro_pretty_name"
|
||||
ID="$distro_id"
|
||||
BUILD_ID="$distro_build_id"
|
||||
EOF
|
||||
|
||||
busybox_rootfs
|
||||
cp -v $build/busybox/busybox-1.36.1/busybox $rootfspath/usr/bin # &>> $fulllogfile
|
||||
cd $rootfspath/usr/bin
|
||||
@@ -54,6 +62,12 @@ rootfs() {
|
||||
uclibc
|
||||
kernel
|
||||
kernel_modules
|
||||
if [ "$FINIT_INIT_ENABLE" = "y" ]; then
|
||||
finit_init
|
||||
cp -rv $root/rootfs/overlay/* $rootfspath
|
||||
rm $rootfspath/init
|
||||
ln -sv usr/bin/finit $rootfspath/init
|
||||
fi
|
||||
[ "$ZLIB_ENABLE" = "y" ] && zlib
|
||||
[ "$OPENSSL_ENABLE" = "y" ] && openssl
|
||||
[ "$DNSMASQ_ENABLE" = "y" ] && dnsmasq
|
||||
|
||||
Reference in New Issue
Block a user