netifd: remove obsolete _init callbacks, set available=1 for ppp

SVN-Revision: 28631
This commit is contained in:
Felix Fietkau 2011-10-27 20:28:37 +00:00
parent b3d7c7b1b5
commit 24bf5c41a0
2 changed files with 1 additions and 16 deletions

View file

@ -48,9 +48,5 @@ dhcp_teardown() {
proto_kill_command proto_kill_command
} }
dhcp_init() {
return
}
add_protocol dhcp add_protocol dhcp

View file

@ -94,6 +94,7 @@ ppp_init_config() {
proto_config_add_string "device" proto_config_add_string "device"
ppp_generic_init_config ppp_generic_init_config
no_device=1 no_device=1
available=1
} }
ppp_setup() { ppp_setup() {
@ -107,10 +108,6 @@ ppp_teardown() {
ppp_generic_teardown "$@" ppp_generic_teardown "$@"
} }
ppp_init() {
return
}
pppoe_init_config() { pppoe_init_config() {
ppp_generic_init_config ppp_generic_init_config
proto_config_add_string "ac" proto_config_add_string "ac"
@ -142,10 +139,6 @@ pppoe_teardown() {
ppp_generic_teardown "$@" ppp_generic_teardown "$@"
} }
pppoe_init() {
return
}
pppoa_init_config() { pppoa_init_config() {
ppp_generic_init_config ppp_generic_init_config
proto_config_add_int "atmdev" proto_config_add_int "atmdev"
@ -182,10 +175,6 @@ pppoa_teardown() {
ppp_generic_teardown "$@" ppp_generic_teardown "$@"
} }
pppoa_init() {
return
}
[ -n "$INCLUDE_ONLY" ] || { [ -n "$INCLUDE_ONLY" ] || {
add_protocol ppp add_protocol ppp
[ -f /usr/lib/pppd/*/rp-pppoe.so ] && add_protocol pppoe [ -f /usr/lib/pppd/*/rp-pppoe.so ] && add_protocol pppoe