Commit 450931fb authored by spiiroin's avatar spiiroin

Merge branch 'jb45772' into 'master'

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

See merge request !49
parents e1e508ea 6093bf85
......@@ -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