projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix typo in firstboot - /etc/config/* is now a file instead of a symlink
[openwrt.git]
/
package
/
base-files
/
default
/
etc
/
functions.sh
1
#!/bin/sh
2
alias debug=${DEBUG:-:}
3
4
# valid interface?
5
if_valid () (
6
ifconfig "$1" >&- 2>&- ||
7
[ "${1%%[0-9]}" = "br" ] ||
8
{ debug "# missing interface '$1' ignored"; false; }
9
)
10
11
hotplug_dev() {
12
env -i ACTION=$1 INTERFACE=$2 /sbin/hotplug net
13
}