- /* We need to insert BT driver module by using 'insmod' in case of ARTIK530,
- * and 'insmod' should be executed by systemd not bt-core. */
- ret = __bt_call_systemact_service(BT_SYSTEMACT_BT_DRIVER_INSMOD);
- if (ret < 0) {
- BT_ERR("Failed to call systemact service");
- return -1;
- } else {
- /* Insmod should run before bt-stack-up.sh command */
- usleep(1000 * 200); /* 200ms */
- }
-
- ret = __execute_command("/usr/etc/bluetooth/bt-stack-up.sh", NULL);
- if (ret < 0) {
- BT_ERR("Failed to run script");
- __bt_call_systemact_service(BT_SYSTEMACT_HCI_LOGGER_STOP);
- return -1;
- }
-