large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
[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 }
This page took 0.042289 seconds and 5 git commands to generate.