uci set network.lan.ipaddr=x.x.x.x
uci commit
ifup lan
ip addr add x.x.x.x/24 dev eth0
ip route add default via x.x.x.x
git clone https://github.com/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
Choose router model, etc
Optional:
make -j $(nproc) kernel_menuconfig
Finish
make -j $(nproc) defconfig download clean
make -j $(nproc) world