OpenWrt Forum Archive

Topic: Disable service by default in image

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

When building an image /etc/rc.d is populated with symlinks to each service that has an initscript with a START value. How can I prevent this from happening with a specific service? I still want the init script to have a START value, it should just be disabled by default.

You can't. Predeploy an files/etc/uci-defaults/blah  which enables/disables the desired services on firstboot.

Wouldn't the same file on the JFFS2 overrule existing ones on the SquashFS?

Sure, but I'm looking to modify the image.

@jow

That'll work, but isn't there a cleaner way? Which part of the buildroot populates rc.d?

The discussion might have continued from here.