1
0
Fork 0
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:
Geoffrey Frogeye 2018-04-04 16:17:13 +02:00
parent befacfdc78
commit b8f6d1e0bd
22 changed files with 505 additions and 216 deletions

View file

@ -92,7 +92,6 @@ upgrade-fpga:
# CHEF
prog: chef
chef:
make -C buildroot chef-rebuild

View file

@ -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 $?

View file

@ -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"
}

View file

@ -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="- "

View file

@ -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