526ca52dda01e642e6a03dbe8e5241ce5ae759bc
[openwrt.git] / openwrt / 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 }
This page took 0.05124 seconds and 3 git commands to generate.