mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2025-09-07 18:30:24 +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
|
@ -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="- "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue