From b8337b5699204af87c5c6cfbeee00c2eabfd6077 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Fri, 15 May 2020 10:14:04 +0200 Subject: [PATCH] Optimized setup script --- README.md | 7 ++++--- scripts/image/{create.sh => setup.sh} | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename scripts/image/{create.sh => setup.sh} (99%) diff --git a/README.md b/README.md index ac505b9..8732371 100644 --- a/README.md +++ b/README.md @@ -85,15 +85,16 @@ To pase the configuration to the program use this syntax: echo "$USER" # | The username echo "mmcblk1" # | The device echo "3" # | The raspberry pi number - echo "arch" # | The operation system + echo "arch" # | The operation system + #echo "n" # ├── If arch: Should a encrypted setup be used? (y/n) echo "n" # | Force image download echo "n" # | Transfer image - #echo "n" # ├── Overwrite device before copying + #echo "n" # ├── If image transfer yes Overwrite device before copying? (y/n) echo "test12345" # | The user password echo "test12345" # | The root password echo "example-host" # | The hostname echo "y" # | Setup Wifi on target system -)| sudo bash ./sd_setup.sh +)| sudo bash ./scripts/image/setup.sh ``` ## License diff --git a/scripts/image/create.sh b/scripts/image/setup.sh similarity index 99% rename from scripts/image/create.sh rename to scripts/image/setup.sh index 322a755..ae2c265 100644 --- a/scripts/image/create.sh +++ b/scripts/image/setup.sh @@ -42,7 +42,7 @@ destructor(){ umount -v "$chroot_dev_mount_path" || warning "Umounting $chroot_dev_mount_path failed!" umount -v "$chroot_proc_mount_path" || warning "Umounting $chroot_proc_mount_path failed!" umount -v "$chroot_sys_mount_path" || warning "Umounting $chroot_sys_mount_path failed!" - umount -v "$root_mount_path""/boot/" || warning "Umounting $root_mount_path/boot/ failed!" + umount -v "$root_mount_path""boot/" || warning "Umounting $root_mount_path""boot/ failed!" umount -v "$root_mount_path" || warning "Umounting $root_mount_path failed!" umount -v "$boot_mount_path" || warning "Umounting $boot_mount_path failed!" rmdir -v "$root_mount_path" || warning "Removing $root_mount_path failed!"