#!/bin/sh dir=$(pwd) # overlay our directories test -n "$BROWSER" && test -f /.joe || { find . -type d -mindepth 1 | while read dir; do cp -d -r ./$dir/* /$dir/. done echo 1 > /.overlayfs echo "[i] imported overlay fs" echo "[i] editor 'joe' installed" | logger }