diff options
Diffstat (limited to 'net-scripts/net.modules.d/tuntap')
-rw-r--r-- | net-scripts/net.modules.d/tuntap | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/net-scripts/net.modules.d/tuntap b/net-scripts/net.modules.d/tuntap index eea33db..1cbc621 100644 --- a/net-scripts/net.modules.d/tuntap +++ b/net-scripts/net.modules.d/tuntap @@ -10,19 +10,14 @@ tunctl() { LC_ALL=C /usr/bin/tunctl "$@" } -# char* tuntap_provides(void) -# -# Returns a string to change module definition for starting up -tuntap_provides() { - echo "tuntap" -} - # void tuntap_depend(void) # # Sets up the dependancies for the module tuntap_depend() { - after interface + after interface macnet before dhcp + functions interface_exists interface_type + variables tunctl } # bool tuntap_check_installed(void) @@ -34,21 +29,6 @@ tuntap_check_installed() { return 1 } -# bool tuntap_check_depends(void) -# -# Checks to see if we have the needed functions -tuntap_check_depends() { - local f - - for f in interface_exists interface_type; do - [[ $( type -t "${f}" ) == "function" ]] && continue - eerror "tuntap: missing required function ${f}\n" - return 1 - done - - return 0 -} - # bool tuntap_check_kernel(void) # # Checks to see if the tun is present - if not try and load it @@ -61,14 +41,6 @@ tuntap_check_kernel() { return 1 } -# char* tuntap_get_vars(char *interface) -# -# Returns a string spaced with possible user set -# configuration variables -tuntap_get_vars() { - echo "tunctl_$1" -} - # bool tuntap_exists(char *interface) # # Returns 0 if the tun/tap interface exists, otherwise 1 |