1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2025-09-07 18:30:24 +02:00

Better IHM

This commit is contained in:
Geoffrey Frogeye 2018-04-30 22:40:20 +02:00
parent 553c550ac7
commit 760b950e83
17 changed files with 244 additions and 211 deletions

View file

@ -8,7 +8,7 @@ start() {
modprobe pl2303 # USB↔Serial cable
modprobe i2c-bcm2708 # I2C
modprobe i2c-dev # I2C
/opt/chef/i2cOff.sh
/opt/chef/lcdOff.sh
echo "OK"
}

View file

@ -3,19 +3,22 @@
# Start main program
#
EXEC=$(which sh)
SHELL=$(which sh)
EXECDIR=/opt/chef
EXECNAME=premier
EXECPATH=bin/$EXECNAME
PIDFILE=/var/run/chef.pid
LOGFILE=/var/run/chef.log
start() {
printf "Starting chef: "
start-stop-daemon -p "$PIDFILE" -x "$EXEC" -b -m -S -- "/opt/chef/run.sh" -l "$LOGFILE"
echo "OK"
cd "$EXECDIR"; /sbin/start-stop-daemon -p "$PIDFILE" -x "$EXECPATH" -b -m -S
echo "OK"
}
stop() {
printf "Stopping chef: "
start-stop-daemon -p "$PIDFILE" -x "$EXEC" -K
/sbin/start-stop-daemon -x "$EXECPATH" -K
/opt/chef/lcdOff.sh
echo "OK"
}

View file

@ -5,10 +5,7 @@
start() {
printf "Starting extra services: "
# if ! /opt/cdf/bin/testpin 0 1
# then
/etc/extra.d/rcS
# fi
/etc/extra.d/rcS
echo "OK"
}