1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2025-09-05 09:35:56 +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

@ -91,7 +91,8 @@ upgrade-filesystem: sshconf configure
# Met jour les overlays (une partie des fichiers)
upgrade-overlays: sshconf
ssh -F sshconf principal true
rsync --rsh 'ssh -F sshconf' --archive --chown root:root robotech/chef/rootfs_overlay/ principal:/
chmod 700 board/robotech/cdfprincipal/rootfs_overlay/root
rsync --rsh 'ssh -F sshconf' --archive --chown root:root board/robotech/cdfprincipal/rootfs_overlay/ principal:/
# ARDUINO
upgrade-arduino:
@ -116,6 +117,11 @@ upgrade-chef: chef
rsync --rsh 'ssh -F sshconf' --archive --chown root:root buildroot/output/target/opt/chef principal:/opt/
run:
ssh -F sshconf principal true
ssh -F sshconf principal /etc/init.d/S50chef stop
ssh -F sshconf principal 'cd /opt/chef; bin/premier; /opt/chef/lcdOff.sh'
restart:
ssh -F sshconf principal true
ssh -F sshconf principal /etc/init.d/S50chef restart

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