aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tftp/src/tftp_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tftp/src/tftp_app.erl')
-rw-r--r--lib/tftp/src/tftp_app.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/tftp/src/tftp_app.erl b/lib/tftp/src/tftp_app.erl
index bbcd107e30..80d54c6cbe 100644
--- a/lib/tftp/src/tftp_app.erl
+++ b/lib/tftp/src/tftp_app.erl
@@ -36,7 +36,8 @@
%%====================================================================
start(_StartType, _StartArgs) ->
- tftp_sup:start_link([]).
+ Config = get_configuration(),
+ tftp_sup:start_link(Config).
%%--------------------------------------------------------------------
stop(_State) ->
@@ -45,3 +46,11 @@ stop(_State) ->
%%====================================================================
%% Internal functions
%%====================================================================
+
+get_configuration() ->
+ case (catch application:get_env(tftp, services)) of
+ {ok, Services} ->
+ Services;
+ _ ->
+ []
+ end.