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 2> /dev/null || :
ifconfig rndis0 netmask 2> /dev/null || :
udhcpd_configure() {
......@@ -1192,7 +1192,7 @@ int network_up(const modedata_t *data)
sprintf(command, "ifconfig %s %s %s\n", interface, ip, netmask);
sprintf(command, "ifconfig %s %s netmask %s\n", interface, ip, netmask);
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