aboutsummaryrefslogtreecommitdiffstats
path: root/package/netifd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-27 20:28:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-10-27 20:28:37 +0000
commit0095a6a47cf13c8fbfdbc1746b8b3d4b70bd76dc (patch)
treeada136b2e48ce908d44812536bac0b9c3f93d828 /package/netifd/files
parent52cd85e16fbe4be670ad8f5f64e5794c2aa48c3e (diff)
downloadmaster-187ad058-0095a6a47cf13c8fbfdbc1746b8b3d4b70bd76dc.tar.gz
master-187ad058-0095a6a47cf13c8fbfdbc1746b8b3d4b70bd76dc.tar.bz2
master-187ad058-0095a6a47cf13c8fbfdbc1746b8b3d4b70bd76dc.zip
netifd: remove obsolete _init callbacks, set available=1 for ppp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28631 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/netifd/files')
-rwxr-xr-xpackage/netifd/files/lib/netifd/proto/dhcp.sh4
-rwxr-xr-xpackage/netifd/files/lib/netifd/proto/ppp.sh13
2 files changed, 1 insertions, 16 deletions
diff --git a/package/netifd/files/lib/netifd/proto/dhcp.sh b/package/netifd/files/lib/netifd/proto/dhcp.sh
index a4b96baa3f..674956175a 100755
--- a/package/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/netifd/files/lib/netifd/proto/dhcp.sh
@@ -48,9 +48,5 @@ dhcp_teardown() {
proto_kill_command
}
-dhcp_init() {
- return
-}
-
add_protocol dhcp
diff --git a/package/netifd/files/lib/netifd/proto/ppp.sh b/package/netifd/files/lib/netifd/proto/ppp.sh
index 4fe80e9f6a..7cff2a98e7 100755
--- a/package/netifd/files/lib/netifd/proto/ppp.sh
+++ b/package/netifd/files/lib/netifd/proto/ppp.sh
@@ -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