Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb45772' into 'master'
[usb-moded] Proper use of ifconfig command. Contributes to JB#45772

See merge request mer-core/usb-moded!49
  • Loading branch information
spiiroin committed May 10, 2019
2 parents e1e508e + 6093bf8 commit 450931f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/set_usb_mode.sh
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/usb_moded-network.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 450931f

Please sign in to comment.