netifd: remove obsolete _init callbacks, set available=1 for ppp
authorFelix Fietkau <nbd@openwrt.org>
Thu, 27 Oct 2011 20:28:37 +0000 (20:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 27 Oct 2011 20:28:37 +0000 (20:28 +0000)
SVN-Revision: 28631

package/netifd/files/lib/netifd/proto/dhcp.sh
package/netifd/files/lib/netifd/proto/ppp.sh

index a4b96baa3f6876c9517567c611bcbbfd025b29f7..674956175ad3d79780ee879bef9db5333dde1ce9 100755 (executable)
@@ -48,9 +48,5 @@ dhcp_teardown() {
        proto_kill_command
 }
 
-dhcp_init() {
-       return
-}
-
 add_protocol dhcp
 
index 4fe80e9f6afac4e7da0626415aa8457f878c3e57..7cff2a98e763ac957c052b7345743a32d29836c2 100755 (executable)
@@ -94,6 +94,7 @@ ppp_init_config() {
        proto_config_add_string "device"
        ppp_generic_init_config
        no_device=1
+       available=1
 }
 
 ppp_setup() {
@@ -107,10 +108,6 @@ ppp_teardown() {
        ppp_generic_teardown "$@"
 }
 
-ppp_init() {
-       return
-}
-
 pppoe_init_config() {
        ppp_generic_init_config
        proto_config_add_string "ac"
@@ -142,10 +139,6 @@ pppoe_teardown() {
        ppp_generic_teardown "$@"
 }
 
-pppoe_init() {
-       return
-}
-
 pppoa_init_config() {
        ppp_generic_init_config
        proto_config_add_int "atmdev"
@@ -182,10 +175,6 @@ pppoa_teardown() {
        ppp_generic_teardown "$@"
 }
 
-pppoa_init() {
-       return
-}
-
 [ -n "$INCLUDE_ONLY" ] || {
        add_protocol ppp
        [ -f /usr/lib/pppd/*/rp-pppoe.so ] && add_protocol pppoe