mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2025-09-05 09:35:56 +02:00
Récupération de la position
This commit is contained in:
parent
befacfdc78
commit
b8f6d1e0bd
22 changed files with 505 additions and 216 deletions
|
@ -92,7 +92,6 @@ upgrade-fpga:
|
|||
|
||||
# CHEF
|
||||
|
||||
prog: chef
|
||||
chef:
|
||||
make -C buildroot chef-rebuild
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Loads required hardware modules
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting hardware handling: "
|
||||
modprobe pl2303 # USB↔Serial cable
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping hardware handling: "
|
||||
rmmod pl2303 # USB↔Serial cable
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
stop
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
start() {
|
||||
printf "Starting extra services: "
|
||||
if ! /opt/cdf/bin/testpin 0 1
|
||||
then
|
||||
# if ! /opt/cdf/bin/testpin 0 1
|
||||
# then
|
||||
/etc/extra.d/rcS
|
||||
fi
|
||||
# fi
|
||||
echo "OK"
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ alias mv="mv -i"
|
|||
alias free='free -m'
|
||||
alias df='df -h'
|
||||
|
||||
export PS1="[\u@\h \$] "
|
||||
export PS1="[\u@\h \W] "
|
||||
export PS2="> "
|
||||
export PS3="+ "
|
||||
export PS4="- "
|
||||
|
|
|
@ -16,6 +16,7 @@ endef
|
|||
define CHEF_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/opt/chef/bin
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/opt/chef/com
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/opt/chef/log
|
||||
$(INSTALL) -D -m 0755 $(@D)/bin/* $(TARGET_DIR)/opt/chef/bin
|
||||
$(INSTALL) -D -m 0755 $(@D)/run.sh $(TARGET_DIR)/opt/chef
|
||||
endef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue