Firmware selector "Script to run on first boot (uci-defaults)" question

Hello,

If I do below,

and do a build, that will set the ip address of router to 192.168.0.2?

Thanks,

That worked as expected.

#!/bin/sh
# Example: Set hostname and enable SSH

uci set network.lan.ipaddr='192.168.0.50'
uci set network.lan.gateway='192.168.0.2'
uci set network.lan.dns='8.8.8.8'
uci commit

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.