Commit 6093bf85 authored by Jussi Laakkonen's avatar Jussi Laakkonen

[usb-moded] Proper use of ifconfig command. Contributes to JB#45772

Use 'ifconfig <interface> <ip> netmask <netmask>' format when calling
ifconfig from usb-moded. This is the proper use according to ifconfig
manual pages. When adding a netmask, keyword 'netmask' is instructed to
be used.
parent e1e508ea
......@@ -132,7 +132,7 @@ rndis_down() {
rndis_up() {
log_debug "Enable rndis interface"
ifconfig rndis0 192.168.2.15 255.255.255.0 2> /dev/null || :
ifconfig rndis0 192.168.2.15 netmask 255.255.255.0 2> /dev/null || :
}
udhcpd_configure() {
......
......@@ -1192,7 +1192,7 @@ int network_up(const modedata_t *data)
}
else
{
sprintf(command, "ifconfig %s %s %s\n", interface, ip, netmask);
sprintf(command, "ifconfig %s %s netmask %s\n", interface, ip, netmask);
common_system(command);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment