Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on March 20, 2014, 07:44:58 AM

Title: [SOLVED]start wlan0 dhcp using command
Post by: manit123 on March 20, 2014, 07:44:58 AM
hi , I am trying to write a script to start wifi using http://wiki.tinycorelinux.net/wiki:setting_up_wifi
Which command will have same effect as system-tools>control-panel>network>change interface to wlan0 , use dhcp broadcast > apply
Title: Re: start wlan0 dhcp using command
Post by: maro on March 20, 2014, 08:41:42 PM
My guess would be that
    IF=wlan0 ; sudo udhcpc -x hostname $(hostname) -b -i $IF -p /var/run/udhcpc.${IF}.pid ; unset IF
should do the trick.
Title: Re: start wlan0 dhcp using command
Post by: manit123 on March 21, 2014, 09:35:15 AM
that worked .
What if I don't send hostname in packet ?