pppoe-server: Load pppoe kernel module
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 30 Aug 2015 20:35:21 +0000 (20:35 +0000)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 30 Aug 2015 20:35:21 +0000 (20:35 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/functions/functions.pppoe-server

index fe0fc5c..5c9860b 100644 (file)
 #                                                                             #
 ###############################################################################
 
+pppoe_server_init() {
+       # Load the pppoe kernel module
+       module_load "pppoe"
+}
+
 pppoe_server_start() {
        local zone=${1}
        assert isset zone
 
+       # Initialise the system for this
+       pppoe_server_init
+
        service_start "pppoe-server@${zone}.service"
 }