[OpenWrt-Devel] Modifying configuration at package install
Matthias Strubel
Matthias.Strubel at aod-rpg.de
Wed Jan 7 15:48:30 EST 2015
Hi Eric,
yes, you can run scripts at specific points during (un)installation of a package.
You can find more information here: http://wiki.openwrt.org/doc/devel/packages
I think you want to use the "Package/postinst" part.
Some quickly found examples:
https://github.com/openwrt-routing/packages/blob/master/miniupnpd/Makefile
https://github.com/openwrt/packages/blob/master/net/ddns-scripts/Makefile
Hope that helps,
best regards
Matthias
On 01/07/2015 09:28 PM, Eric Schultz wrote:
> I'm trying to create an example package. In it, I want the package to
> modify the IP address of the LAN to 10.0.2.15. If I had access to a
> running OpenWrt console, I'd use "uci set" to change the ip address.
> I'd like to perform this change manually though at package
> installation time.
>
> Is there a way to run uci during the Package/install action in the
> Makefile? Or is there a better way of making this change?
>
> Thanks,
>
> Eric
>
_______________________________________________
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