Skip to content

Shell startup script: unknown command loop #29

@lextoc

Description

@lextoc

I'm trying to write a startup script for this for my Raspberry Pi. At this line: /home/pi/armv6l/fliclib-cpp/flic the terminal ends up with an infinite loop of unknown command. It works if I call the command directly in the terminal.

#!/bin/sh
sudo service bluetooth stop
sudo hciconfig hci0 up

echo "STARTING BLUETOOTHD"
sudo systemctl start bluetooth &

echo "STARTING DATABASE"
/home/pi/armv6l/daemon -l -f flic.sqlite3 &

echo "STARTING FLIC"
/home/pi/armv6l/fliclib-cpp/flic & # => "unknown command" happens here

echo "STARTING PYTHON SCRIPT"
python2.7 /home/pi/armv6l/fliclib-cpp/ffi/python/flic/dist/main.py

I'm not entirely sure if this is related/issue-worthy on this repo and I've been stuck for quite some time now. I was wondering if any of you had an idea why this might happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions