Files
FunKey-OS/FunKey/board/funkey/rootfs-overlay/etc/init.d/S01first_boot
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