summaryrefslogtreecommitdiffstats
path: root/minikrebs/profiles/init_overlay
diff options
context:
space:
mode:
authorYour Name <you@example.com>2013-03-15 06:02:25 -0400
committerYour Name <you@example.com>2013-03-15 06:02:25 -0400
commite1047af73a37bcb0a2395ab00e06997eb6a7b61a (patch)
tree7941af9029ea8eb0435f5cd4a97dff51cb062b0e /minikrebs/profiles/init_overlay
parentd3e60d8fac6315692f64d52f1eec55511341e7cf (diff)
parent001bfd5f2b6890cafd209de4ea360927d4dd8a55 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Conflicts: minikrebs
Diffstat (limited to 'minikrebs/profiles/init_overlay')
-rwxr-xr-xminikrebs/profiles/init_overlay22
1 files changed, 0 insertions, 22 deletions
diff --git a/minikrebs/profiles/init_overlay b/minikrebs/profiles/init_overlay
deleted file mode 100755
index e71cd151..00000000
--- a/minikrebs/profiles/init_overlay
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-cd $(dirname $(readlink -f $0))
-[ ! -e overlay/ ] && echo "profile data for external overlay does not exist, bailing out"
-
-[ -e doc/overlay ] && echo "Profile demands the following partitioning of the overlay usb stick:" && cat doc/OVERLAY
-
-if grep -q $PWD/mnt/overlay /etc/mtab;then
- echo "overlay mounted"
- echo "copying overlay data:"
- find overlay/ -mindepth 1 -maxdepth 1 | while read data; do
- echo " $data -> mnt/overlay/$(basename $data)"
- rm -rf mnt/overlay/$(basename $data)
- cp -r $data mnt/overlay
- done
- echo
- echo "unmounting overlay"
- umount mnt/overlay/
-else
- mkdir -p $PWD/mnt/overlay
- echo "please mount your overlay to $PWD/mnt/overlay"
-fi
-