You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
312 B
Bash

#!/bin/sh
CMD="$1"
PORT="$2"
echo "delos-fwknopd: $CMD $PORT" > /dev/console
if [ "$CMD" = "open" ]; then
case "$PORT" in
1000)
echo "delos-fwknopd: reboot and load firmware via TFTP" > /dev/console
fw_setenv FwBootSource TFTP
reboot
;;
esac
fi