We don't want stage4

This commit is contained in:
Alexandre Aubin 2021-01-25 20:57:52 +01:00
parent 7214cfd84a
commit cf6b269627
4 changed files with 0 additions and 23 deletions

View file

@ -1,15 +0,0 @@
#!/bin/sh -e
BOOKSHELF_URL="https://magpi.raspberrypi.org/bookshelf.xml"
GUIDE_URL="$(curl -s "$BOOKSHELF_URL" | awk -F '[<>]' "/<TITLE>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/"

View file

@ -1 +0,0 @@
*.pdf

View file

@ -1,2 +0,0 @@
cups
system-config-printer

View file

@ -1,5 +0,0 @@
#!/bin/bash -e
on_chroot <<EOF
adduser "$FIRST_USER_NAME" lpadmin
EOF