Optimized setup script

This commit is contained in:
Kevin Veen-Birkenbach 2020-05-15 10:14:04 +02:00
parent 3a6383891a
commit b8337b5699
2 changed files with 5 additions and 4 deletions

View File

@ -86,14 +86,15 @@ To pase the configuration to the program use this syntax:
echo "mmcblk1" # | The device echo "mmcblk1" # | The device
echo "3" # | The raspberry pi number 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" # | Force image download
echo "n" # | Transfer image 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 user password
echo "test12345" # | The root password echo "test12345" # | The root password
echo "example-host" # | The hostname echo "example-host" # | The hostname
echo "y" # | Setup Wifi on target system echo "y" # | Setup Wifi on target system
)| sudo bash ./sd_setup.sh )| sudo bash ./scripts/image/setup.sh
``` ```
## License ## License

View File

@ -42,7 +42,7 @@ destructor(){
umount -v "$chroot_dev_mount_path" || warning "Umounting $chroot_dev_mount_path failed!" 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_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 "$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 "$root_mount_path" || warning "Umounting $root_mount_path failed!"
umount -v "$boot_mount_path" || warning "Umounting $boot_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!" rmdir -v "$root_mount_path" || warning "Removing $root_mount_path failed!"