Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scripts/cuboxsd : more prettify

  • Loading branch information...
commit 01fbc39f1c43268758b8ed5c0b805ed4867d5c6c 1 parent 33ad958
Johannes authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 scripts/cuboxsd
View
6 scripts/cuboxsd
@@ -18,7 +18,7 @@ if [ -z "$(which parted)" ]; then
exit 2
fi
-echo "I'm about to overwrite ${DEVICE}. All existing data will be lost."
+echo "\nI'm about to overwrite ${DEVICE}. All existing data will be lost."
until [ "$REPLY" = y -o "$REPLY" = yes ] || [ "$REPLY" = n -o "$REPLY" = no ]; do
read -p "Do you want to continue? " REPLY
done
@@ -45,8 +45,12 @@ if [ -d "$ROOTFS" ]; then
else
tar --no-same-owner -xjf $ROOTFS -C $mountdir
fi
+df -h $root_part
+echo "\n#### Umount..."
umount $mountdir
rmdir $mountdir
+
+echo "\n#### Sync..."
sync
echo "\n#### Done"
Please sign in to comment.
Something went wrong with that request. Please try again.