Skip to content

Commit aa2f088

Browse files
committed
Fix tests
1 parent 0d23e57 commit aa2f088

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

os/image/make-planktoscopeos-sdcard.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name=$2
55
file=$name.img
66

77
# save raspios sdcard
8-
dd bs=1M if=$device status=progress conv=fdatasync of=$file
8+
dd bs=1M if="$device" status=progress conv=fdatasync of="$file"
99

1010
# shrink
11-
pishrink.sh -Za $file
11+
pishrink.sh -Za "$file"
1212

1313
# compress
1414
# xz -T0 -9 -k $file

os/image/make-raspios-sdcard.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ wget -c -nc "${url}"
1313
wget -c -nc "${url}.sha256"
1414

1515
# make sure signature hasn't changed
16-
head -c 64 ${file}.sha256 | grep -qx "${sha256}"
16+
head -c 64 "${file}.sha256"| grep -qx "${sha256}"
1717

1818
# verify signature
19-
cat ${file}.sha256 | sha256sum --check
19+
sha256sum --check "${file}.sha256"
2020

2121
# unmount
22-
umount -q ${device}? || true
23-
umount -q ${device} || true
22+
umount -q "${device}?" || true
23+
umount -q "${device}" || true
2424

2525
# new empty dos partition table
26-
echo 'label: dos' | sfdisk $device
26+
echo 'label: dos' | sfdisk "$device"
2727

2828
# write raspios
29-
xzcat $file | dd bs=1M of=$device status=progress conv=fdatasync
29+
xzcat "$file" | dd bs=1M of="$device" status=progress conv=fdatasync
3030

31-
sudo partprobe $device
31+
sudo partprobe "$device"
3232

3333
# find first partition
34-
boot_partition=$(lsblk -ln -o NAME $device | sed -n '2p')
34+
boot_partition=$(lsblk -ln -o NAME "$device" | sed -n '2p')
3535

3636
# mount boot partition
37-
mount /dev/${boot_partition} /mnt
37+
mount /dev/"${boot_partition}"/mnt
3838

3939
# create user
4040
echo "pi:$(echo 'copepode' | openssl passwd -6 -stdin)" > /mnt/userconf
@@ -43,6 +43,6 @@ echo "pi:$(echo 'copepode' | openssl passwd -6 -stdin)" > /mnt/userconf
4343
touch /mnt/ssh
4444

4545
# unmount boot partition
46-
umount /dev/${boot_partition}
46+
umount /dev/"${boot_partition}"
4747

4848
echo "✅ SD card is ready."
File renamed without changes.

os/mediamtx/mediamtx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://github.com/bluenviron/mediamtx/blob/v1.15.3/mediamtx.yml
1+
# https://github.com/bluenviron/mediamtx/blob/v1.15.6/mediamtx.yml
22

33
# ICE servers. Needed only when local listeners can't be reached by clients.
44
# STUN servers allows to obtain and share the public IP of the server.

0 commit comments

Comments
 (0)