From 9c68e89b4439ed510debbfa8df7ae1e6dd64264d Mon Sep 17 00:00:00 2001 From: openoms Date: Tue, 8 Dec 2020 16:54:56 +0000 Subject: [PATCH] add paste-to-install.sh --- kindle/paste-to-install.sh | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 kindle/paste-to-install.sh diff --git a/kindle/paste-to-install.sh b/kindle/paste-to-install.sh new file mode 100644 index 0000000..2f6d1b7 --- /dev/null +++ b/kindle/paste-to-install.sh @@ -0,0 +1,66 @@ +BASE="http://SERVER_IP:3030" + +# Make the Kindle file system writable +mntroot rw + +# Create the mnt/base-us scripts according to the files in the kindle directory +cat > /mnt/base-us/RUNME.sh < /mnt/base-us/update.sh < /etc/crontab/root + +# Execute the init script and trigger an the first render +sh /mnt/base-us/RUNME.sh