Skip to content
Snippets Groups Projects
Commit d87a6951 authored by David Mondou's avatar David Mondou
Browse files

Fix load zephyr

parent 81451282
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
TYPE=$(board_serial_number | cut -b 2-4)
if [ "$TYPE" == "126" ]; then
/usr/rigado/scripts/attach_bmd345.sh 2>&1 | logger -p user.info
/usr/rigado/scripts/attach_bmd345.sh 2>&1 | logger -p user.info &
  • Developer

    @mondoud - do you have any more details about what forking the attach script fixes? It also appears looks like it causes a race condition for one of our scanning applications. It is supposed to start later in rc5 after hci is attached; however since this process is forked we wind up with a race condition.

    Thoughts?

  • Author Owner

    Without the ampersand, it will block and not allow the rest of the scripts to start. Does removing "2>&1 | logger -p user.info &" from the end of that line fix your issue?

  • Developer

    I can confirm that it blocks without it, though that's not what I expected. I thought init would wait for the script to complete and move on when it's done. That is not the case, and init hangs.

    I didn't try without the redirects to logger, but I can.

    My main goal, however, would be to have start_hci follow the priority order from SysV. For the time being, I linked the attach_bmd345.sh script to S98start_hci.sh; since I don't think anyone is going to swap modules on the gateway. This works as I would expect -- hci must be attached before moving on to start the scanning app in S99.

  • Please register or sign in to reply
else
/usr/rigado/scripts/attach_bmd300.sh 2>&1 | logger -p user.info
fi
......@@ -3,8 +3,8 @@
TYPE=$(board_serial_number | cut -b 2-4)
if [ "$TYPE" != "083" ] && [ "$TYPE" != "081" ] && [ "$TYPE" != "077" ] && [ "$TYPE" != "120" ]; then
logger -s "load_zephyr: Not a vesta-100B, Vesta-200B, Vesta-300B or Vesta-400B"
if [ "$TYPE" != "083" ] && [ "$TYPE" != "081" ] && [ "$TYPE" != "077" ] && [ "$TYPE" != "120" ] && [ "$TYPE" != "126" ]; then
logger -s "load_zephyr: Not a vesta-100B, Vesta-200B, Vesta-300B, Vesta-300 or Vesta-400B"
else
/usr/bin/gwmode-zephyr.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment