From cf6b269627b26884e8e18f89a601c2a301f0b9aa Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 25 Jan 2021 20:57:52 +0100 Subject: [PATCH] We don't want stage4 --- stage4/03-bookshelf/00-run.sh | 15 --------------- stage4/03-bookshelf/files/.gitignore | 1 - stage4/05-print-support/00-packages | 2 -- stage4/05-print-support/01-run.sh | 5 ----- 4 files changed, 23 deletions(-) delete mode 100755 stage4/03-bookshelf/00-run.sh delete mode 100644 stage4/03-bookshelf/files/.gitignore delete mode 100644 stage4/05-print-support/00-packages delete mode 100755 stage4/05-print-support/01-run.sh diff --git a/stage4/03-bookshelf/00-run.sh b/stage4/03-bookshelf/00-run.sh deleted file mode 100755 index 5bd9885..0000000 --- a/stage4/03-bookshelf/00-run.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e - -BOOKSHELF_URL="https://magpi.raspberrypi.org/bookshelf.xml" -GUIDE_URL="$(curl -s "$BOOKSHELF_URL" | awk -F '[<>]' "/Raspberry Pi Beginner's Guide v3<\/TITLE>/ {f=1; next} f==1 && /PDF/ {print \$3; exit}")" -OUTPUT="$(basename "$GUIDE_URL" | cut -f1 -d'?')" - -if [ ! -f "files/$OUTPUT" ]; then - rm files/*.pdf -f - curl -s "$GUIDE_URL" -o "files/$OUTPUT" -fi - -file "files/$OUTPUT" | grep -q "PDF document" - -install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Bookshelf" -install -v -o 1000 -g 1000 -m 644 "files/$OUTPUT" "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Bookshelf/" diff --git a/stage4/03-bookshelf/files/.gitignore b/stage4/03-bookshelf/files/.gitignore deleted file mode 100644 index a136337..0000000 --- a/stage4/03-bookshelf/files/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.pdf diff --git a/stage4/05-print-support/00-packages b/stage4/05-print-support/00-packages deleted file mode 100644 index e9c36bd..0000000 --- a/stage4/05-print-support/00-packages +++ /dev/null @@ -1,2 +0,0 @@ -cups -system-config-printer diff --git a/stage4/05-print-support/01-run.sh b/stage4/05-print-support/01-run.sh deleted file mode 100755 index dc9e2b2..0000000 --- a/stage4/05-print-support/01-run.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -e - -on_chroot <<EOF -adduser "$FIRST_USER_NAME" lpadmin -EOF