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/