projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ramips: include 'linux/leds.h' from 'dev-gpio-leds.h'
[openwrt.git]
/
package
/
swconfig
/
files
/
switch.sh
1
#!/bin/sh
2
# Copyright (C) 2009 OpenWrt.org
3
4
setup_switch_dev
() {
5
config_get name
"
$1
"
name
6
name
=
"
${name:-$1}
"
7
[
-d
"/sys/class/net/
$name
"
] &&
ifconfig
"
$name
"
up
8
swconfig dev
"
$name
"
load network
9
}
10
11
setup_switch
() {
12
config_load network
13
config_foreach setup_switch_dev switch
14
}
This page took
0.049854 seconds
and
5
git commands to generate.