summaryrefslogtreecommitdiff
path: root/scripts/overlay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/overlay.sh')
-rw-r--r--scripts/overlay.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/scripts/overlay.sh b/scripts/overlay.sh
deleted file mode 100644
index 090671c..0000000
--- a/scripts/overlay.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-lower=/cfg/preserve/${1}
-upper=/cfg/overlay/${1}
-work=/cfg/overlay/${1}_work
-target=${2}
-
-if [ ! -d "$target" ]; then
- exit
-fi
-
-if [ -d "$lower" ]; then
- if [ -d "$upper" ]; then
- mkdir -p "$work"
- mount -t overlay overlay \
- -olowerdir=${lower},upperdir=${upper},workdir=${work} \
- ${target}
- else
- mount --bind "$lower" "$target"
- fi
-fi