netifd: ifup-shellscript - fix wrong usage of 'local'
authorFelix Fietkau <nbd@openwrt.org>
Thu, 10 Dec 2015 12:53:30 +0000 (12:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 10 Dec 2015 12:53:30 +0000 (12:53 +0000)
commitec57f1545197f774922bbb3f70402a5fc7d05160
treec15eb11072a5a4034cc89cb2bb882d908a98553b
parent04e2b5f768fa98e0a3c627360b9cc448267bffaf
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@bluebottle.com>
SVN-Revision: 47828
package/network/config/netifd/files/sbin/ifup