These scripts were causing ip issues in the latest version of LEDE: https://gist.github.com/Noltari/6d20d8bcbe236caf516c0a73f5477d00 Fixes preinit iface script by making eth0 the default ifname and only changing it to eth1 for the devices that specifically need it. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>master
parent
c69903473b
commit
ec95509af4
@ -1,10 +0,0 @@ |
||||
#!/bin/sh |
||||
|
||||
failsafe_ip() { |
||||
[ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && { |
||||
ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up |
||||
} |
||||
} |
||||
|
||||
boot_hook_add failsafe failsafe_ip |
||||
|
@ -1,27 +0,0 @@ |
||||
#!/bin/sh |
||||
|
||||
port_net_echo() { |
||||
[ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && { |
||||
if [ "$pi_preinit_net_messages" = "y" ] || [ "$pi_failsafe_net_message" = "true" ] && [ "$pi_preinit_no_failsafe_netmsg" != "y" ]; then |
||||
netmsg $pi_broadcast "$1" |
||||
fi |
||||
} |
||||
} |
||||
|
||||
preinit_ip_deconfig() { |
||||
if [ -z "$pi_ifname" ]; then |
||||
ifconfig $ifname 0.0.0.0 down |
||||
else |
||||
grep -q "$pi_ifname" /proc/net/dev && { |
||||
ifconfig $pi_ifname 0.0.0.0 down |
||||
} |
||||
fi |
||||
} |
||||
|
||||
preinit_net_echo() { |
||||
preinit_ip |
||||
|
||||
port_net_echo $1 |
||||
} |
||||
|
||||
|
@ -1,12 +0,0 @@ |
||||
#!/bin/sh |
||||
|
||||
indicate_failsafe() { |
||||
preinit_net_echo() { |
||||
port_net_echo $1 |
||||
} |
||||
echo "- failsafe -" |
||||
preinit_net_echo "Entering Failsafe!\n" |
||||
indicate_failsafe_led |
||||
} |
||||
|
||||
|
Loading…
Reference in new issue