summaryrefslogtreecommitdiffstats
path: root/ctl-binding.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-20 17:16:28 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:57:57 +0100
commit9e8fb48bc13f3ef4848a54c7a2415cb25339fef0 (patch)
tree763615143ab69ff7da8812533e5c1e340a5b94b1 /ctl-binding.c
parentb9776b0f51b2d23584b962d1aa93d5028118fcaf (diff)
Updated to latest App Template
Diffstat (limited to 'ctl-binding.c')
-rw-r--r--ctl-binding.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ctl-binding.c b/ctl-binding.c
index 8771fc0..ec33f82 100644
--- a/ctl-binding.c
+++ b/ctl-binding.c
@@ -55,9 +55,12 @@ PUBLIC int CtlBindingInit () {
errcount += LuaLibInit();
#endif
+ const char *profile= getenv("CONTROL_ONLOAD_PROFILE");
+ if (!profile) profile=CONTROL_ONLOAD_PROFILE;
+
// now that everything is initialised execute the onload action
- if (!errcount)
- errcount += DispatchOnLoad(CONTROL_ONLOAD_DEFAULT);
+ if (!errcount)
+ errcount += DispatchOnLoad(CONTROL_ONLOAD_PROFILE);
AFB_DEBUG ("Audio Policy Control Binding Done errcount=%d", errcount);
return errcount;