Commit 0913c0ab authored by Lucas Russo's avatar Lucas Russo

scripts/upstart/*: change service to initctl

Some distros, like SL6, does not recognize
upstart jobs with service, just with initctl.
parent ba0247b2
# Permissions for the fpga devices
ACTION=="add", KERNEL=="fpga*", OWNER="root", GROUP="users", MODE="660", PROGRAM="/usr/local/bin/eat-dashes.sh %k", SYMLINK+="fpga/%c", RUN+="/sbin/service bpm-sw start %c"
ACTION=="remove", KERNEL=="fpga*", PROGRAM="/usr/local/bin/eat-dashes.sh %k", RUN+="/sbin/service bpm-sw stop %c"
ACTION=="add", KERNEL=="fpga*", OWNER="root", GROUP="users", MODE="660", PROGRAM="/usr/local/bin/eat-dashes.sh %k", SYMLINK+="fpga/%c", RUN+="/sbin/initctl start bpm-sw BOARD=%c"
ACTION=="remove", KERNEL=="fpga*", PROGRAM="/usr/local/bin/eat-dashes.sh %k", RUN+="/sbin/initctl stop bpm-sw BOARD=%c"
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