Skip to content

Instantly share code, notes, and snippets.

@hilios
Last active August 29, 2015 14:23
Show Gist options
  • Save hilios/ce61aa2ae1032d009036 to your computer and use it in GitHub Desktop.
Save hilios/ce61aa2ae1032d009036 to your computer and use it in GitHub Desktop.

How to set a fix IP in Intel Edsion

Edit the file /etc/wpa_supplicant/wpa_cli-actions.sh around the line 50.

$ vim /etc/wpa_supplicant/wpa_cli-actions.sh

Close to the line 50 change it to this.

if [ "$CMD" = "CONNECTED" ]; then
    kill_daemon udhcpc /var/run/udhcpc-$IFNAME.pid
#   udhcpc -i $IFNAME -p /var/run/udhcpc-$IFNAME.pid -S
    ifconfig $IFNAME 192.168.1.171 netmask 255.255.255.0
    route add default gw 192.168.1.1
fi

Done!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment