projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
brcm63xx: move profiles definitions to image/Makefile
[openwrt/openwrt.git]
/
target
/
linux
/
brcm63xx
/
base-files
/
lib
/
preinit
/
05_failsafe_config_switch_brcm63xx
1
#!/bin/sh
2
3
failsafe_ip
() {
4
[
-n
"
$pi_ifname
"
] &&
grep
-q
"
$pi_ifname
"
/
proc
/
net
/
dev
&& {
5
ifconfig
$pi_ifname $pi_ip
netmask
$pi_netmask
broadcast
$pi_broadcast
up
6
}
7
}
8
9
boot_hook_add failsafe failsafe_ip
10