diff options
Diffstat (limited to 'network')
-rwxr-xr-x | network | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,11 +19,15 @@ ifup() return 1 fi - /sbin/ifconfig $1 up + eval ifcfg="\$${1}" + + # Get the name of the interface from the first token in the string + ifname=${ifcfg%% *} + + /sbin/ifconfig $ifname up wi_up $1 || return 1 - eval ifcfg="\$${1}" if [ "$ifcfg" = "dhcp" ]; then # remove the .pid file if it exists /bin/rm -f /var/run/dhcpcd-${1}.pid >/dev/null 2>&1 |