Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bpm-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
bpm
bpm-sw
Commits
03baa3b3
Commit
03baa3b3
authored
Oct 28, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/*: readd start/stop scripts for no systemd/upstart systems
parent
cef41e4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
bpm-sw-start.sh
scripts/bpm-sw-start.sh
+20
-0
bpm-sw-stop.sh
scripts/bpm-sw-stop.sh
+18
-0
No files found.
scripts/bpm-sw-start.sh
0 → 100755
View file @
03baa3b3
#!/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
[@]
}
scripts/bpm-sw-stop.sh
0 → 100755
View file @
03baa3b3
#!/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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment