1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

fix netifd

This commit is contained in:
suyuan 2023-09-13 20:04:11 +08:00
parent 0319f0a5a8
commit 2ceca49e15
5 changed files with 1 additions and 2 deletions

0
netifd/Makefile Executable file → Normal file
View file

0
netifd/files/etc/hotplug.d/iface/00-netstate Executable file → Normal file
View file

0
netifd/files/etc/uci-defaults/14_migrate-dhcp-release Executable file → Normal file
View file

0
netifd/files/etc/udhcpc.user Executable file → Normal file
View file

View file

@ -13,7 +13,7 @@ set_classless_routes() {
done
}
setup_interface() {
setup_interface () {
proto_init_update "*" 1
proto_add_ipv4_address "$ip" "${subnet:-255.255.255.0}"
# TODO: apply $broadcast
@ -27,7 +27,6 @@ setup_interface() {
eval "$(ipcalc.sh "$i/$mask")";gw_net="$NETWORK"
[ "$ip_net" != "$gw_net" ] && proto_add_ipv4_route "$i" 32 "" "$ip"
#[ "$DEFAULTROUTE" = 0 ] || proto_add_ipv4_route 0.0.0.0 0 "$i" "$ip"
proto_add_ipv4_route 0.0.0.0 0 "$i" "$ip"
local r