summaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2018-03-02 20:08:24 +0000
committerSerge Schneider <serge@raspberrypi.org>2018-03-13 12:50:50 +0000
commitff2d5edee18efbb7ba2498e5bf8d308c186c4866 (patch)
tree380dd4fb8138fcbcf374839a880deb3191ca0725 /stage1
parent56da271499afe7ae8e35a8fd30f04135283b2fb0 (diff)
shellcheck
Diffstat (limited to 'stage1')
-rwxr-xr-xstage1/00-boot-files/00-run.sh4
-rwxr-xr-xstage1/01-sys-tweaks/00-run.sh6
-rwxr-xr-xstage1/02-net-tweaks/00-run.sh6
-rwxr-xr-xstage1/prerun.sh2
4 files changed, 9 insertions, 9 deletions
diff --git a/stage1/00-boot-files/00-run.sh b/stage1/00-boot-files/00-run.sh
index 2c976a8..bc61397 100755
--- a/stage1/00-boot-files/00-run.sh
+++ b/stage1/00-boot-files/00-run.sh
@@ -1,4 +1,4 @@
#!/bin/bash -e
-install -m 644 files/cmdline.txt ${ROOTFS_DIR}/boot/
-install -m 644 files/config.txt ${ROOTFS_DIR}/boot/
+install -m 644 files/cmdline.txt "${ROOTFS_DIR}/boot/"
+install -m 644 files/config.txt "${ROOTFS_DIR}/boot/"
diff --git a/stage1/01-sys-tweaks/00-run.sh b/stage1/01-sys-tweaks/00-run.sh
index 4454056..61ba51b 100755
--- a/stage1/01-sys-tweaks/00-run.sh
+++ b/stage1/01-sys-tweaks/00-run.sh
@@ -1,8 +1,8 @@
#!/bin/bash -e
-install -d ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d
-install -m 644 files/noclear.conf ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/noclear.conf
-install -v -m 644 files/fstab ${ROOTFS_DIR}/etc/fstab
+install -d "${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d"
+install -m 644 files/noclear.conf "${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/noclear.conf"
+install -v -m 644 files/fstab "${ROOTFS_DIR}/etc/fstab"
on_chroot << EOF
if ! id -u pi >/dev/null 2>&1; then
diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh
index 174b9f8..96a1774 100755
--- a/stage1/02-net-tweaks/00-run.sh
+++ b/stage1/02-net-tweaks/00-run.sh
@@ -1,6 +1,6 @@
#!/bin/bash -e
-install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf
-install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname
+install -m 644 files/ipv6.conf "${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf"
+install -m 644 files/hostname "${ROOTFS_DIR}/etc/hostname"
-ln -sf /dev/null ${ROOTFS_DIR}/etc/systemd/network/99-default.link
+ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link"
diff --git a/stage1/prerun.sh b/stage1/prerun.sh
index ebb5d35..9acd13c 100755
--- a/stage1/prerun.sh
+++ b/stage1/prerun.sh
@@ -1,5 +1,5 @@
#!/bin/bash -e
-if [ ! -d ${ROOTFS_DIR} ]; then
+if [ ! -d "${ROOTFS_DIR}" ]; then
copy_previous
fi