PDA

Bekijk de volledige versie : Noob: Use of bootcmd



kraai
02-02-2005, 21:22
Hi,

I have firmware 1.9.2.7CR-3c. I finally tried a CR because I also need VPN passthrough to work.

A long time ago Miki gave the advice to use this:
You can use the following (replace <N> with next free index, and be sure to use single quotes!)

# nvram set bootCmd<N>='(. /var/state/udhcpc/dhclient.state && /sbin/route add -host $router dev $interface && /sbin/route add default gw $router)'
# nvram commit

To store a route in my routing table permanently.

:confused: How do I know what <N> should be. So how do I know the next free index ?

Oleg
03-02-2005, 08:36
bootCmds are not supported since 1.8.x.x, use flashfs instead.