summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net.modules.d/ipppd')
-rw-r--r--net-scripts/net.modules.d/ipppd26
1 files changed, 3 insertions, 23 deletions
diff --git a/net-scripts/net.modules.d/ipppd b/net-scripts/net.modules.d/ipppd
index 8f5fc37..5688954 100644
--- a/net-scripts/net.modules.d/ipppd
+++ b/net-scripts/net.modules.d/ipppd
@@ -4,19 +4,15 @@
# Contributed by Roy Marples (uberlord@gentoo.org)
-# char* ipppd_provides(void)
-#
-# Returns a string to change module definition for starting up
-ipppd_provides() {
- echo "isdn"
-}
-
# void ipppd_depend(void)
#
# Sets up the dependancies for the module
ipppd_depend() {
after macnet
before interface
+ provide isdn
+ functions interface_exists interface_type clean_pidfile
+ variables ipppd
}
# bool ipppd_check_installed(void)
@@ -28,21 +24,6 @@ ipppd_check_installed() {
return 1
}
-# bool ipppd_check_depends(void)
-#
-# Checks to see if we have the needed functions
-ipppd_check_depends() {
- local f
-
- for f in interface_exists interface_type clean_pidfile; do
- [[ $( type -t "${f}" ) == "function" ]] && continue
- eerror "ipppd: missing required function ${f}\n"
- return 1
- done
-
- return 0
-}
-
# bool ipppd_start(char *iface)
#
# Start isdn on an interface
@@ -83,7 +64,6 @@ ipppd_pre_start() {
ipppd_stop() {
local iface="$1" pidfile="/var/run/ipppd-$1.pid"
- ipppd_check_installed || return 0
[[ ! -f ${pidfile} ]] && return 0
clean_pidfile "${pidfile}" && return 0