Migrate to raspberrypi.com
This commit is contained in:
parent
64b498b2dd
commit
188c155717
@ -1,3 +1,3 @@
|
|||||||
deb http://archive.raspberrypi.org/debian/ RELEASE main
|
deb http://archive.raspberrypi.com/debian/ RELEASE main
|
||||||
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
|
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
|
||||||
#deb-src http://archive.raspberrypi.org/debian/ RELEASE main
|
#deb-src http://archive.raspberrypi.com/debian/ RELEASE main
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
deb http://raspbian.raspberrypi.org/raspbian/ RELEASE main contrib non-free rpi
|
deb http://raspbian.raspberrypi.com/raspbian/ RELEASE main contrib non-free rpi
|
||||||
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
|
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
|
||||||
#deb-src http://raspbian.raspberrypi.org/raspbian/ RELEASE main contrib non-free rpi
|
#deb-src http://raspbian.raspberrypi.com/raspbian/ RELEASE main contrib non-free rpi
|
||||||
|
@ -6,5 +6,5 @@ if [ "$RELEASE" != "bookworm" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "${ROOTFS_DIR}" ] || [ "${USE_QCOW2}" = "1" ]; then
|
if [ ! -d "${ROOTFS_DIR}" ] || [ "${USE_QCOW2}" = "1" ]; then
|
||||||
bootstrap ${RELEASE} "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/
|
bootstrap ${RELEASE} "${ROOTFS_DIR}" http://raspbian.raspberrypi.com/raspbian/
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
BOOKSHELF_URL="https://magpi.raspberrypi.org/bookshelf.xml"
|
BOOKSHELF_URL="https://magpi.raspberrypi.com/bookshelf.xml"
|
||||||
GUIDE_URL="$(curl -s "$BOOKSHELF_URL" | awk -F '[<>]' "/<TITLE>Raspberry Pi Beginner's Guide 4th Edition<\/TITLE>/ {f=1; next} f==1 && /PDF/ {print \$3; exit}")"
|
GUIDE_URL="$(curl -s "$BOOKSHELF_URL" | awk -F '[<>]' "/<TITLE>Raspberry Pi Beginner's Guide 4th Edition<\/TITLE>/ {f=1; next} f==1 && /PDF/ {print \$3; exit}")"
|
||||||
OUTPUT="$(basename "$GUIDE_URL" | cut -f1 -d'?')"
|
OUTPUT="$(basename "$GUIDE_URL" | cut -f1 -d'?')"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user