diff --git a/README.md b/README.md index fc9dbbe..f4ae0f3 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,18 @@ Also remember that if your init returns, the kernel will panic, there are just t - run forever in a loop or long sleep - `poweroff` the machine +### BusyBox init is fine, but networking gets on my nerves + +I know right? + +Add this line to `rootfs_post_build_script`: + + rm -f "${1}/etc/init.d/"S*network + +To restore it, run: + + ./run -t initscripts-reconfigure + ## Debugging To GDB the Linux kernel, first run: diff --git a/buildroot_config_fragment b/buildroot_config_fragment index d7cf326..1d09ab9 100644 --- a/buildroot_config_fragment +++ b/buildroot_config_fragment @@ -5,6 +5,7 @@ BR2_PACKAGE_KERNEL_MODULE=y BR2_PACKAGE_OVERRIDE_FILE="../buildroot_override" BR2_PACKAGE_STRACE=y BR2_ROOTFS_OVERLAY="../rootfs_overlay" +BR2_ROOTFS_POST_BUILD_SCRIPT="../rootfs_post_build_script" BR2_ROOTFS_USERS_TABLES="../user_table" # Host GDB diff --git a/rootfs_post_build_script b/rootfs_post_build_script new file mode 100755 index 0000000..ead880b --- /dev/null +++ b/rootfs_post_build_script @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +#rm "${1}/etc/init.d/"S*network