summaryrefslogtreecommitdiffstats
path: root/move/tree/mdk_move_boot_loop
diff options
context:
space:
mode:
Diffstat (limited to 'move/tree/mdk_move_boot_loop')
-rwxr-xr-xmove/tree/mdk_move_boot_loop10
1 files changed, 10 insertions, 0 deletions
diff --git a/move/tree/mdk_move_boot_loop b/move/tree/mdk_move_boot_loop
new file mode 100755
index 000000000..3eef500ab
--- /dev/null
+++ b/move/tree/mdk_move_boot_loop
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+echo losetup >> /tmp/.log
+free >> /tmp/.log
+date >> /tmp/.log
+if sudo losetup /dev/loop0 2>/dev/null | grep -q live_tree_boot; then
+ sudo losetup /dev/loop0 /image_raw/live_tree_boot.clp
+ sudo rm -f /live_tree_boot.clp
+fi
+free >> /tmp/.log