Changeset 47828


Ignore:
Timestamp:
2015-12-10T13:53:30+01:00 (2 years ago)
Author:
nbd
Message:

netifd: ifup-shellscript - fix wrong usage of 'local'

this error was not visible until recent bump to
busybox 1.24.1 stable which introduced a warning message
when keyword 'local' is not used with a shell-function.

this does not change behavior and is a cosmetic cleanup.
fixes the following output:

root@box:~ ifup <interface>
/sbin/ifup: local: line 362: not in a function
/sbin/ifup: local: line 362: not in a function
/sbin/ifup: local: line 1: not in a function

Signed-off-by: Bastian Bittorf <bittorf@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/config/netifd/files/sbin/ifup

    r35383 r47828  
    6868        } 
    6969 
    70         local radio_devs 
    71         local network="$1" 
     70        network="$1" 
    7271        config_load wireless 
    7372        config_foreach find_related_radios wifi-iface 
    7473 
    75         local dev 
    7674        for dev in $(echo "$radio_devs" | sort -u); do 
    7775                /sbin/wifi up "$dev" 
Note: See TracChangeset for help on using the changeset viewer.