blob: 68f5c8c20fd246142791c14c490a60b67a2caf2e (
plain) (
tree)
|
|
#!/bin/sh -
### BEGIN INIT INFO
# Provides: cryptech-novena-rtl
# Required-Start: $remote_fs
# Required-Stop:
# Should-Start:
# Default-Start: S
# Default-Stop:
# Short-Description: Reload Novena FPGA on boot.
# Description: Reload Novena FPGA on boot.
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/lsb/init-functions
. /etc/default/cryptech-novena-rtl
do_start () {
log_daemon_msg "Loading Novena FPGA from ${fpga_bitstream}"
load_novena_fpga "${fpga_bitstream}"
}
case "$1" in
start|restart|reload|force-reload|"")
do_start
;;
stop)
# No-op
;;
*)
echo "Usage: bootmisc.sh [start|stop]" >&2
exit 3
;;
esac
:
|