config wifi through command

config wifi through command so that it can connect to Internet
automatically.