diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-10-05 14:43:35 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-10-05 14:46:59 -0700 |
commit | 743745339502da513cce7acbc9b67fbce4378091 (patch) | |
tree | 3e38344d2014fe30cbce962453af8385c34e094b | |
parent | 35a0950d0bc08061e6a27837ec26d4dace04993f (diff) |
network: support early 'up' for dhcp interfaces
Previous commit acac4f47597320f55995bdaf692d6f2335a1d67e
attempted to parse the name of the interface from the config
line, but neglected to check for "dhcp" config lines, in which
case the interface is the name
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | network | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -22,7 +22,12 @@ ifup() eval ifcfg="\$${1}" # Get the name of the interface from the first token in the string - ifname=${ifcfg%% *} + + if [ "$ifcfg" = "dhcp" ]; then + ifname="$1" + else + ifname=${ifcfg%% *} + fi /sbin/ifconfig $ifname up |