Commit 03baa3b3 authored by Lucas Russo's avatar Lucas Russo

scripts/*: readd start/stop scripts for no systemd/upstart systems

parent cef41e4a
#!/bin/sh
BIN_DIR=$1
function usage {
echo "Usage: $0 <bin directory> [options]"
}
if [ -z "$BIN_DIR" ]; then
echo "\"BIN_DIR\" variable unset."
usage
exit 1
fi
for opt in "${@:2}"
do
OPTS+=("${item}")
done
${BIN_DIR}/dev_io ${EXTRA_FLAGS[@]}
#!/bin/sh
BIN_INSTANCE=$1
function usage {
echo "Usage: $0 <bin instance>"
}
if [ -z "$BIN_INSTANCE" ]; then
echo "\"BIN_INSTANCE\" variable unset."
usage
exit 1
fi
# FIXME: Find correct dev_io instance looking at all running processes
TARGET_PID=$(ps aux | grep -Ei "dev_io.*/dev/fpga${BIN_INSTANCE}.*" | head -1 | awk '{print $2}')
kill ${TARGET_PID}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment