From 24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Tue, 15 Mar 2016 15:03:31 +0100 Subject: Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes --- bootstrap.d/50-firstboot.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'bootstrap.d/50-firstboot.sh') diff --git a/bootstrap.d/50-firstboot.sh b/bootstrap.d/50-firstboot.sh index f3deb18..4892c4b 100644 --- a/bootstrap.d/50-firstboot.sh +++ b/bootstrap.d/50-firstboot.sh @@ -6,30 +6,30 @@ . ./functions.sh # Prepare rc.firstboot script -cat files/firstboot/10-begin.sh > $R/etc/rc.firstboot +cat files/firstboot/10-begin.sh > "$R/etc/rc.firstboot" # Ensure openssh server host keys are regenerated on first boot if [ "$ENABLE_SSHD" = true ] ; then - cat files/firstboot/21-generate-ssh-keys.sh >> $R/etc/rc.firstboot - rm -f $R/etc/ssh/ssh_host_* + cat files/firstboot/21-generate-ssh-keys.sh >> "$R/etc/rc.firstboot" + rm -f "$R/etc/ssh/ssh_host_*" fi # Prepare filesystem auto expand if [ "$EXPANDROOT" = true ] ; then - cat files/firstboot/22-expandroot.sh >> $R/etc/rc.firstboot + cat files/firstboot/22-expandroot.sh >> "$R/etc/rc.firstboot" fi # Ensure that dbus machine-id exists -cat files/firstboot/23-generate-machineid.sh >> $R/etc/rc.firstboot +cat files/firstboot/23-generate-machineid.sh >> "$R/etc/rc.firstboot" # Create /etc/resolv.conf symlink -cat files/firstboot/24-create-resolv-symlink.sh >> $R/etc/rc.firstboot +cat files/firstboot/24-create-resolv-symlink.sh >> "$R/etc/rc.firstboot" # Finalize rc.firstboot script -cat files/firstboot/99-finish.sh >> $R/etc/rc.firstboot -chmod +x $R/etc/rc.firstboot +cat files/firstboot/99-finish.sh >> "$R/etc/rc.firstboot" +chmod +x "$R/etc/rc.firstboot" # Add rc.firstboot script to rc.local -sed -i '/exit 0/d' $R/etc/rc.local -echo /etc/rc.firstboot >> $R/etc/rc.local -echo exit 0 >> $R/etc/rc.local +sed -i '/exit 0/d' "$R/etc/rc.local" +echo /etc/rc.firstboot >> "$R/etc/rc.local" +echo exit 0 >> "$R/etc/rc.local" -- cgit v1.2.3