From 9af2bd4e82cd2be21a9d34f457e4f4c7eda3a7a4 Mon Sep 17 00:00:00 2001 From: simono41 Date: Wed, 27 Jun 2018 01:54:37 +0200 Subject: [PATCH] m22ssd_fix --- make_spectre_os-pi.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/make_spectre_os-pi.sh b/make_spectre_os-pi.sh index 7fc5383..766c838 100755 --- a/make_spectre_os-pi.sh +++ b/make_spectre_os-pi.sh @@ -10,6 +10,10 @@ fdisk -l read -p "Geben sie eine Festplatte an: /dev/sda : " device [[ -z "${device}" ]] && device=/dev/sda +if [ "${device}" == "/dev/mmcblk0" ]; then + m2ssddevice=p +fi + name=spectre_os arch=armV7 out_dir=out @@ -17,22 +21,22 @@ out_dir=out mkdir -p boot mkdir -p root -if cat /proc/mounts | grep "$device"1 > /dev/null; then +if cat /proc/mounts | grep ${device}${m2ssddevice}1 > /dev/null; then echo "gemountet" - umount "$device"1 + umount ${device}${m2ssddevice}1 else echo "nicht gemountet" fi -if cat /proc/mounts | grep "$device"2 > /dev/null; then +if cat /proc/mounts | grep ${device}${m2ssddevice}2 > /dev/null; then echo "gemountet" - umount "$device"2 + umount ${device}${m2ssddevice}2 else echo "nicht gemountet" fi -mount "$device"1 boot -mount "$device"2 root +mount ${device}${m2ssddevice}1 boot +mount ${device}${m2ssddevice}2 root cp -R boot/* root/boot/