From aac1d412177c904124b8b323ccb884af126e3097 Mon Sep 17 00:00:00 2001 From: D4rk4 Date: Fri, 31 Jul 2020 12:11:20 +0200 Subject: [PATCH] First boot handling (not activated yet) --- contrib/firstboot.sh | 1 + contrib/rc_local.tpl | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 contrib/firstboot.sh create mode 100755 contrib/rc_local.tpl diff --git a/contrib/firstboot.sh b/contrib/firstboot.sh new file mode 100755 index 0000000..a9bf588 --- /dev/null +++ b/contrib/firstboot.sh @@ -0,0 +1 @@ +#!/bin/bash diff --git a/contrib/rc_local.tpl b/contrib/rc_local.tpl new file mode 100755 index 0000000..c03aa0c --- /dev/null +++ b/contrib/rc_local.tpl @@ -0,0 +1,6 @@ +#!/bin/bash +bootflag="/.manufactured" +if [ ! -f ${bootflag} ]; then + exec /opt/coins-demo/contrib/firstboot.sh + touch ${bootflag} +fi