[OpenWrt-Devel] Modifying configuration at package install

Jo-Philipp Wich jow at openwrt.org
Wed Jan 7 17:11:02 EST 2015


Hi Eric,

make your package ship an /etc/uci-defaults/99_custom_settings that
executes the appropriate uci set commands.

That script is automatically sourced on the first OpenWrt boot and
deleted afterwards. Make sure it exits with code 0.

You can not rely on postinstall hooks as the network configuration may
not be available at build time, on ar71xx for example it is generated on
the first boot (from /etc/uci-defaults/02_network).

~ Jow
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list