Michel-FK 49ef2304d5 make first_boot re-entrant
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
2021-01-13 11:18:32 +01:00

19 lines
285 B
Bash
Executable File

#!/bin/sh
THIS=$(basename $0)
case "$1" in
start)
first_boot_ok=$(fw_printenv -n first_boot_ok 2>/dev/null)
if ! [ ! "${first_boot_ok}" -ne "${first_boot_ok}" ] 2> /dev/null; then
first_boot
fi
;;
stop)
;;
*)
echo "Usage: $0 {start|stop}" >&2
exit 1
;;
esac