title: How to config ip address in embedded Linux?
body: <p>I'm working on an embedded device running Linux (with BusyBox). I need to provide a command line tool to config static ip address. There are some limitations.</p>
  
  <ol>
  <li>Using <code>ifconfig</code> won't do the job because it will get lost when
  system rebooted.     </li>
  <li>With very limited resource, there's no GUI.</li>
  <li>There is a <code>vi</code> text editor to modify Linux config file. But somehow that's not accepted either. Because the assumption is that the customers have no knowledge of how to use <code>vi</code> or deeper understanding to Linux. I need to provide a tool so that they can just press something like "ConfigMyIP 192.168.0.1 255.255.255.0" and the job is done.</li>
  </ol>
  
  <p>Any idea how this can be done? (Using <code>shell</code> or <code>C</code> or both)</p>