# check if we have a ro overlay or if we can write changes directly
if [ -e "$DIR_OVERLAY_LOWER" ]; then
# using meta-readonly-rootfs-overlay
# check if we have a ro overlay or if we can write changes directly
if [ -e "$DIR_OVERLAY_LOWER" ]; then
# using meta-readonly-rootfs-overlay
run-parts $DIR
rm -r $DIR_OVERLAY_LOWER/$DIR
rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/rc*.d/S*firststart
rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/init.d/firststart
run-parts $DIR
rm -r $DIR_OVERLAY_LOWER/$DIR
rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/rc*.d/S*firststart
rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/init.d/firststart